diff options
author | Matthew Wilcox <matthew@wil.cx> | 2007-08-15 20:56:56 +0200 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.localdomain> | 2007-10-12 20:51:18 +0200 |
commit | dffe807cdbc6d2409b9bcc87a9517bb7c0d25b65 (patch) | |
tree | 9d79c515ab15086a63146cfdd8dd271758b86118 /drivers/scsi/aha152x.c | |
parent | [SCSI] ide-scsi: Close narrow race in release (diff) | |
download | linux-dffe807cdbc6d2409b9bcc87a9517bb7c0d25b65.tar.xz linux-dffe807cdbc6d2409b9bcc87a9517bb7c0d25b65.zip |
[SCSI] ncr53c8xx: Call scsi_host_put in release
Since ncr53c8xx_attach() calls scsi_host_put(), make ncr53c8xx_release()
call scsi_host_put() too, for symmetry. Both callers already expect
it to put the host for them, so that works out nicely. While the zalon
driver does 'use' the host pointer afterwards, it only compares it for
equality and doesn't dereference it, so that's safe.
While I'm at it, get rid of pointless checks for NULL, use shost_priv()
and change ncr53c8xx_release to return void.
Signed-off-by: Matthew Wilcox <matthew@wil.cx>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/aha152x.c')
0 files changed, 0 insertions, 0 deletions