Commit bbc6b732 authored by Rusty Russell's avatar Rusty Russell Committed by Linus Torvalds

[PATCH] Correct kmalloc check: drivers_scsi_dpt_i2o.c

From:  Pablo Menichini <pablo@menichini.com.ar>
parent 59265656
......@@ -1491,7 +1491,7 @@ static int adpt_i2o_parse_lct(adpt_hba* pHba)
pDev->next_lun; pDev = pDev->next_lun){
}
pDev->next_lun = kmalloc(sizeof(struct adpt_device),GFP_KERNEL);
if(pDev == NULL) {
if(pDev->next_lun == NULL) {
return -ENOMEM;
}
memset(pDev->next_lun,0,sizeof(struct adpt_device));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment