* [2.6 patch] scsi/aic7xxx_old.c: fix NULL check
@ 2007-10-18 10:52 Adrian Bunk
0 siblings, 0 replies; only message in thread
From: Adrian Bunk @ 2007-10-18 10:52 UTC (permalink / raw)
To: Mariusz Kozlowski, James Bottomley; +Cc: linux-scsi, linux-kernel
Commit bbfbbbc1182f8b44c8cc4c99f4a3f3a512149022 accidentally reversed
the logic of this NULL check.
Spotted by the Coverity checker.
Signed-off-by: Adrian Bunk <bunk@kernel.org>
---
ee645f41f64ebeb782a0ca2e724dff929f854b68
diff --git a/drivers/scsi/aic7xxx_old.c b/drivers/scsi/aic7xxx_old.c
index 4025608..8f8db5f 100644
--- a/drivers/scsi/aic7xxx_old.c
+++ b/drivers/scsi/aic7xxx_old.c
@@ -8417,7 +8417,7 @@ aic7xxx_alloc(struct scsi_host_template *sht, struct aic7xxx_host *temp)
p->host = host;
p->scb_data = kzalloc(sizeof(scb_data_type), GFP_ATOMIC);
- if (!p->scb_data)
+ if (p->scb_data)
{
scbq_init (&p->scb_data->free_scbs);
}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2007-10-18 10:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-18 10:52 [2.6 patch] scsi/aic7xxx_old.c: fix NULL check Adrian Bunk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).