diff options
author | Chris Boot <bootc@bootc.net> | 2012-12-11 22:58:48 +0100 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2012-12-13 06:17:25 +0100 |
commit | e1fe2060d7e8f58a69374135e32e90f0bb79a7fd (patch) | |
tree | 496e995322db60717dbf31ca84f9d8753f125479 /arch | |
parent | sbp-target: use simple assignment in tgt_agent_rw_agent_state() (diff) | |
download | linux-e1fe2060d7e8f58a69374135e32e90f0bb79a7fd.tar.xz linux-e1fe2060d7e8f58a69374135e32e90f0bb79a7fd.zip |
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 <gang.chen@asianux.com>
Signed-off-by: Chris Boot <bootc@bootc.net>
Cc: Andy Grover <agrover@redhat.com>
Cc: Nicholas A. Bellinger <nab@linux-iscsi.org>
Cc: stable@vger.kernel.org
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions