summaryrefslogtreecommitdiffstats
path: root/drivers/media/video/pvrusb2
diff options
context:
space:
mode:
authorMike Isely <isely@pobox.com>2008-04-21 08:48:41 +0200
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-04-24 19:09:49 +0200
commit17a7b6642da13f789471895677c98736ac85f43a (patch)
tree73119576e300ff8afda4b4e18a2760fec4d1b88b /drivers/media/video/pvrusb2
parentV4L/DVB (7719): pvrusb2: Implement input selection enforcement (diff)
downloadlinux-17a7b6642da13f789471895677c98736ac85f43a.tar.xz
linux-17a7b6642da13f789471895677c98736ac85f43a.zip
V4L/DVB (7720): pvrusb2: Fix bad error code on cx23416 firmware load failure
Signed-off-by: Mike Isely <isely@pobox.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/pvrusb2')
-rw-r--r--drivers/media/video/pvrusb2/pvrusb2-hdw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-hdw.c b/drivers/media/video/pvrusb2/pvrusb2-hdw.c
index 72e9056557bd..a3e40adc2c13 100644
--- a/drivers/media/video/pvrusb2/pvrusb2-hdw.c
+++ b/drivers/media/video/pvrusb2/pvrusb2-hdw.c
@@ -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);