提交 0619d9e8 编写于 作者: A Allen Pais 提交者: Bartlomiej Zolnierkiewicz

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

Signed-off-by: NAllen Pais <allen.lkml@gmail.com>
Signed-off-by: NBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
上级 36452b8b
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册