From: Boaz Harrosh Date: Mon, 16 Nov 2009 18:44:02 +0000 (+0200) Subject: [SCSI] osduld: Ref-counting bug fix X-Git-Tag: v2.6.33-rc1~344^2~45 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=89f5e1f2f13b1079b8d7ff7d3ade345b7ad7c009;p=pandora-kernel.git [SCSI] osduld: Ref-counting bug fix If scsi has released the device (logout), and exofs has last reference on the osduld_device it will be freed by osd_uld_release() within the call to fput(). But this will oops in cdev_release() which is called after the fops->release. (cdev is embedded within osduld_device). __uld_get/put pair makes sure we have a cdev for the duration of fput() Signed-off-by: Boaz Harrosh Signed-off-by: James Bottomley --- Reading git-diff-tree failed