From 9284edec6bf181b1f52f742a72f68a7eec7f65ed Mon Sep 17 00:00:00 2001 From: Mike Isely Date: Sun, 20 Apr 2008 22:48:41 -0500 Subject: pvrusb2: Fix bad error code on cx23416 firmware load failure From: Mike Isely Signed-off-by: Mike Isely --- linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c b/linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c index 7ebbd69a4..af8805017 100644 --- a/linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c +++ b/linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c @@ -1276,7 +1276,7 @@ int pvr2_upload_firmware2(struct pvr2_hdw *hdw) " must be a multiple of %zu bytes", fw_files[fwidx],sizeof(u32)); release_firmware(fw_entry); - return -1; + return -EINVAL; } fw_ptr = kmalloc(FIRMWARE_CHUNK_SIZE, GFP_KERNEL); -- cgit v1.2.3