video: fbdev: matroxfb: return -ENOMEM on allocation failure

Signed-off-by: Allen Pais <allen.lkml@gmail.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
This commit is contained in:
Allen Pais 2017-10-12 18:18:23 +02:00 committed by Bartlomiej Zolnierkiewicz
parent 36452b8ba0
commit 0619d9e8f1
1 changed files with 1 additions and 1 deletions

View File

@ -2056,7 +2056,7 @@ static int matroxfb_probe(struct pci_dev* pdev, const struct pci_device_id* dumm
minfo = kzalloc(sizeof(*minfo), GFP_KERNEL);
if (!minfo)
return -1;
return -ENOMEM;
minfo->pcidev = pdev;
minfo->dead = 0;