]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] iscsi_tcp: stop leaking r2t_info's when the incoming R2T is bad
authorOlaf Kirch <olaf.kirch@oracle.com>
Thu, 13 Dec 2007 18:43:36 +0000 (12:43 -0600)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Sat, 12 Jan 2008 00:28:43 +0000 (18:28 -0600)
commitec68da721bba12dfb8808a3df5a08b1af270020d
tree56757a1710b8f1f2e0b243a5d727c7e24de6f210
parentba8ffa61dfed7b0aea0300325703d7c7b75fe72a
[SCSI] iscsi_tcp: stop leaking r2t_info's when the incoming R2T is bad

iscsi_r2t_rsp checks the incoming R2T for sanity, and if it
thinks it's fishy, it will drop it silently. In this case, we
leaked an r2t_info object. If we do this often enough, we run
into a BUG_ON some time later.

Removed r2t wrappers and update patch by Mike Christie

Signed-off-by: Olaf Kirch <olaf.kirch@oracle.com>
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/iscsi_tcp.c