Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4135f9d2 authored by Adrian Bunk's avatar Adrian Bunk Committed by James Bottomley
Browse files

[SCSI] aic7xxx_old: fix accidental logic reversal



Commit bbfbbbc1 accidentally reversed
the logic of this NULL check.

Spotted by the Coverity checker.

Signed-off-by: default avatarAdrian Bunk <bunk@kernel.org>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent 875baf3c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
    }