]> err.no Git - linux-2.6/commitdiff
V4L/DVB (7720): pvrusb2: Fix bad error code on cx23416 firmware load failure
authorMike Isely <isely@pobox.com>
Mon, 21 Apr 2008 06:48:41 +0000 (03:48 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Thu, 24 Apr 2008 17:09:49 +0000 (14:09 -0300)
Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/pvrusb2/pvrusb2-hdw.c

index 72e9056557bda0b7a12b20459cb417dae25bfbc4..a3e40adc2c1359e682ba098e76cb2aac1d953a66 100644 (file)
@@ -1265,7 +1265,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);