diff options
Diffstat (limited to 'drivers/i2c')
-rw-r--r-- | drivers/i2c/i2c-dev.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/i2c/i2c-dev.c b/drivers/i2c/i2c-dev.c index 2cab27a68479..036a03f0d0a6 100644 --- a/drivers/i2c/i2c-dev.c +++ b/drivers/i2c/i2c-dev.c | |||
@@ -264,6 +264,8 @@ static noinline int i2cdev_ioctl_rdwr(struct i2c_client *client, | |||
264 | res = PTR_ERR(msgs[i].buf); | 264 | res = PTR_ERR(msgs[i].buf); |
265 | break; | 265 | break; |
266 | } | 266 | } |
267 | /* memdup_user allocates with GFP_KERNEL, so DMA is ok */ | ||
268 | msgs[i].flags |= I2C_M_DMA_SAFE; | ||
267 | 269 | ||
268 | /* | 270 | /* |
269 | * If the message length is received from the slave (similar | 271 | * If the message length is received from the slave (similar |