Commit 0619d9e8 authored by Allen Pais's avatar Allen Pais Committed by Bartlomiej Zolnierkiewicz

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

Signed-off-by: default avatarAllen Pais <allen.lkml@gmail.com>
Signed-off-by: default avatarBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
parent 36452b8b
...@@ -2056,7 +2056,7 @@ static int matroxfb_probe(struct pci_dev* pdev, const struct pci_device_id* dumm ...@@ -2056,7 +2056,7 @@ static int matroxfb_probe(struct pci_dev* pdev, const struct pci_device_id* dumm
minfo = kzalloc(sizeof(*minfo), GFP_KERNEL); minfo = kzalloc(sizeof(*minfo), GFP_KERNEL);
if (!minfo) if (!minfo)
return -1; return -ENOMEM;
minfo->pcidev = pdev; minfo->pcidev = pdev;
minfo->dead = 0; minfo->dead = 0;
......
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