]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] iscsi class: fix endpoint leak
authorMike Christie <michaelc@cs.wisc.edu>
Mon, 16 Jun 2008 15:11:35 +0000 (10:11 -0500)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Sat, 12 Jul 2008 13:22:30 +0000 (08:22 -0500)
commitd28cfc805be6681759ea0a28a1e5fc16e00e1aad
tree5280f9c355ad08d659bacaaae41da697ddbd7345
parent536a9a458e52bf59c0a3875cc491d7752a49a51b
[SCSI] iscsi class: fix endpoint leak

class_find_device gets a ref to the device so we must release it.
The class will serialize access to the ep so we do not have to worry
about a remove racing with the callers access, so we can simplify the
use and drop the ref right away.

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