[SCSI] libiscsi: fix iscsi pool leak
authorMike Christie <michaelc@cs.wisc.edu>
Fri, 16 Jan 2009 18:36:51 +0000 (12:36 -0600)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Sun, 25 Jan 2009 13:54:37 +0000 (07:54 -0600)
commit2f5899a39dcffb404c9a3d06ad438aff3e03bf04
treee0c8848026a2d89e7d1b1519bee6a791e940b6f3
parentf3b8436ad9a8ad36b3c9fa1fe030c7f38e5d3d0b
[SCSI] libiscsi: fix iscsi pool leak

I am not sure what happened. It looks like we have always leaked
the q->queue that is allocated from the kfifo_init call. nab finally
noticed that we were leaking and this patch fixes it by adding a
kfree call to iscsi_pool_free. kfifo_free is not used per kfifo_init's
instructions to use kfree.

Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/libiscsi.c