mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 21:57:43 +00:00
staging/gdm72xx: return PTR_ERR rather -ENOENT
return the error of filp_open rather returning -ENOENT. Signed-off-by: Devendra Naga <devendra.aaru@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
a6e28b3420
commit
d67030d215
1 changed files with 1 additions and 1 deletions
|
@ -174,7 +174,7 @@ int usb_boot(struct usb_device *usbdev, u16 pid)
|
|||
if (IS_ERR(filp)) {
|
||||
printk(KERN_ERR "Can't find %s.\n", img_name);
|
||||
set_fs(fs);
|
||||
ret = -ENOENT;
|
||||
ret = PTR_ERR(filp);
|
||||
goto restore_fs;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue