mirror of
https://github.com/tbsdtv/media_build.git
synced 2025-07-23 04:13:02 +02:00
14 lines
647 B
Diff
14 lines
647 B
Diff
diff --git a/drivers/media/pci/ivtv/ivtvfb.c b/drivers/media/pci/ivtv/ivtvfb.c
|
|
index 95a56cce9b65..02c03ec6e3c6 100644
|
|
--- a/drivers/media/pci/ivtv/ivtvfb.c
|
|
+++ b/drivers/media/pci/ivtv/ivtvfb.c
|
|
@@ -349,7 +349,7 @@ static int ivtvfb_prep_frame(struct ivtv *itv, int cmd, void __user *source,
|
|
IVTVFB_WARN("ivtvfb_prep_frame: Count not a multiple of 4 (%d)\n", count);
|
|
|
|
/* Check Source */
|
|
- if (!access_ok(source + dest_offset, count)) {
|
|
+ if (!access_ok(VERIFY_READ, source + dest_offset, count)) {
|
|
IVTVFB_WARN("Invalid userspace pointer %p\n", source);
|
|
|
|
IVTVFB_DEBUG_WARN("access_ok() failed for offset 0x%08lx source %p count %d\n",
|