From: Chris Boot Date: Tue, 11 Dec 2012 21:58:48 +0000 (+0000) Subject: sbp-target: fix error path in sbp_make_tpg() X-Git-Tag: v3.8-rc1~94^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e1fe2060d7e8f58a69374135e32e90f0bb79a7fd;p=pandora-kernel.git sbp-target: fix error path in sbp_make_tpg() If the TPG memory is allocated successfully, but we fail further along in the function, a dangling pointer to freed memory is left in the TPort structure. This is mostly harmless, but does prevent re-trying the operation without first removing the TPort altogether. Reported-by: Chen Gang Signed-off-by: Chris Boot Cc: Andy Grover Cc: Nicholas A. Bellinger Cc: stable@vger.kernel.org Signed-off-by: Nicholas Bellinger --- Reading git-diff-tree failed