提交 4135f9d2 编写于 作者: A Adrian Bunk 提交者: James Bottomley

[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: NAdrian Bunk <bunk@kernel.org>
Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
上级 875baf3c
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册