diff options
Diffstat (limited to 'drivers/ieee1394')
-rw-r--r-- | drivers/ieee1394/raw1394.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ieee1394/raw1394.c b/drivers/ieee1394/raw1394.c index f1d05eeb9f51..858fd9ba0143 100644 --- a/drivers/ieee1394/raw1394.c +++ b/drivers/ieee1394/raw1394.c | |||
@@ -459,7 +459,7 @@ static const char __user *raw1394_compat_write(const char __user *buf) | |||
459 | static int | 459 | static int |
460 | raw1394_compat_read(const char __user *buf, struct raw1394_request *r) | 460 | raw1394_compat_read(const char __user *buf, struct raw1394_request *r) |
461 | { | 461 | { |
462 | struct compat_raw1394_req __user *cr = (typeof(cr)) r; | 462 | struct compat_raw1394_req __user *cr = (typeof(cr)) buf; |
463 | if (!access_ok(VERIFY_WRITE, cr, sizeof(struct compat_raw1394_req)) || | 463 | if (!access_ok(VERIFY_WRITE, cr, sizeof(struct compat_raw1394_req)) || |
464 | P(type) || | 464 | P(type) || |
465 | P(error) || | 465 | P(error) || |