mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 17:08:10 +00:00
V4L/DVB (8748): V4L: fix return value of meye probe callback
The return vaule of the probe function should return -ENOMEM instead of -EBUSY if video_device_alloc() fails. Signed-off-by: Henrik Kretzschmar <henne@nachtwindheim.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
eda9e4e294
commit
ef0e3c26ef
1 changed files with 1 additions and 1 deletions
|
@ -1779,6 +1779,7 @@ static int __devinit meye_probe(struct pci_dev *pcidev,
|
|||
goto outnotdev;
|
||||
}
|
||||
|
||||
ret = -ENOMEM;
|
||||
meye.mchip_dev = pcidev;
|
||||
meye.video_dev = video_device_alloc();
|
||||
if (!meye.video_dev) {
|
||||
|
@ -1786,7 +1787,6 @@ static int __devinit meye_probe(struct pci_dev *pcidev,
|
|||
goto outnotdev;
|
||||
}
|
||||
|
||||
ret = -ENOMEM;
|
||||
meye.grab_temp = vmalloc(MCHIP_NB_PAGES_MJPEG * PAGE_SIZE);
|
||||
if (!meye.grab_temp) {
|
||||
printk(KERN_ERR "meye: grab buffer allocation failed\n");
|
||||
|
|
Loading…
Reference in a new issue