mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-04 10:16:51 +07:00
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:
parent
36452b8ba0
commit
0619d9e8f1
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user