projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
875baf3
)
[SCSI] aic7xxx_old: fix accidental logic reversal
author
Adrian Bunk
<bunk@kernel.org>
Thu, 18 Oct 2007 10:52:07 +0000
(12:52 +0200)
committer
James Bottomley
<jejb@mulgrave.localdomain>
Thu, 18 Oct 2007 12:40:42 +0000
(08:40 -0400)
Commit
bbfbbbc1182f8b44c8cc4c99f4a3f3a512149022
accidentally reversed
the logic of this NULL check.
Spotted by the Coverity checker.
Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/aic7xxx_old.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/aic7xxx_old.c
b/drivers/scsi/aic7xxx_old.c
index 4025608d6964cf3ee019708d3ae4ee067e1094ac..8f8db5f0aef7306568ecf32f2324ff8378ef6bfd 100644
(file)
--- 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);
}