diff options
author | Jean Delvare <jdelvare@suse.de> | 2009-03-05 14:45:55 -0600 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2009-03-13 15:25:53 -0500 |
commit | f474a37bc48667595b5653a983b635c95ed82a3b (patch) | |
tree | e8c61e0d9c09eb96eda58a2c68ede724e94d5879 /include/asm-generic/siginfo.h | |
parent | 07c00ec449d4d94042063a6900d7d04fdc9f8e62 (diff) |
[SCSI] libiscsi: fix iscsi pool error path
Memory freeing in iscsi_pool_free() looks wrong to me. Either q->pool
can be NULL and this should be tested before dereferencing it, or it
can't be NULL and it shouldn't be tested at all. As far as I can see,
the only case where q->pool is NULL is on early error in
iscsi_pool_init(). One possible way to fix the bug is thus to not
call iscsi_pool_free() in this case (nothing needs to be freed anyway)
and then we can get rid of the q->pool check.
Signed-off-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'include/asm-generic/siginfo.h')
0 files changed, 0 insertions, 0 deletions