Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=4135f9d28af912d541c0c32f1bc2ee6da23306eb Commit: 4135f9d28af912d541c0c32f1bc2ee6da23306eb Parent: 875baf3cbc0f11009ef5ca33c78210d265c8d779 Author: Adrian Bunk <[EMAIL PROTECTED]> AuthorDate: Thu Oct 18 12:52:07 2007 +0200 Committer: James Bottomley <[EMAIL PROTECTED]> CommitDate: Thu Oct 18 08:40:42 2007 -0400
[SCSI] aic7xxx_old: fix accidental logic reversal Commit bbfbbbc1182f8b44c8cc4c99f4a3f3a512149022 accidentally reversed the logic of this NULL check. Spotted by the Coverity checker. Signed-off-by: Adrian Bunk <[EMAIL PROTECTED]> Signed-off-by: James Bottomley <[EMAIL PROTECTED]> --- drivers/scsi/aic7xxx_old.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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); } - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html