diff options
| author | Jean Delvare <[email protected]> | 2009-03-05 20:45:55 +0000 |
|---|---|---|
| committer | James Bottomley <[email protected]> | 2009-03-13 20:25:53 +0000 |
| commit | f474a37bc48667595b5653a983b635c95ed82a3b (patch) | |
| tree | e8c61e0d9c09eb96eda58a2c68ede724e94d5879 /drivers/scsi/mpt2sas/mpi/mpi2_ioc.h | |
| parent | [SCSI] fcoe: fcoe fc crc offload indication by skb->ip_summed (diff) | |
| download | kernel-f474a37bc48667595b5653a983b635c95ed82a3b.tar.gz kernel-f474a37bc48667595b5653a983b635c95ed82a3b.zip | |
[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 <[email protected]>
Signed-off-by: Mike Christie <[email protected]>
Signed-off-by: James Bottomley <[email protected]>
Diffstat (limited to 'drivers/scsi/mpt2sas/mpi/mpi2_ioc.h')
0 files changed, 0 insertions, 0 deletions
