From: Allen Pais Date: Thu, 12 Oct 2017 16:18:23 +0000 (+0200) Subject: video: fbdev: matroxfb: return -ENOMEM on allocation failure X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=0619d9e8f101320ee0ee95e8071031c9217d50a3;p=linux.git video: fbdev: matroxfb: return -ENOMEM on allocation failure Signed-off-by: Allen Pais Signed-off-by: Bartlomiej Zolnierkiewicz --- diff --git a/drivers/video/fbdev/matrox/matroxfb_base.c b/drivers/video/fbdev/matrox/matroxfb_base.c index b9b284d79631d..838869c6490c2 100644 --- a/drivers/video/fbdev/matrox/matroxfb_base.c +++ b/drivers/video/fbdev/matrox/matroxfb_base.c @@ -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;