Loading drivers/mmc/card/mmc_block_test.c +9 −9 Original line number Diff line number Diff line /* Copyright (c) 2012-2013, The Linux Foundation. All rights reserved. /* Copyright (c) 2012-2014, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -2218,7 +2218,7 @@ static ssize_t send_write_packing_test_read(struct file *file, loff_t *offset) { if (!access_ok(VERIFY_WRITE, buffer, count)) return count; return -EFAULT; memset((void *)buffer, 0, count); Loading Loading @@ -2319,7 +2319,7 @@ static ssize_t err_check_test_read(struct file *file, loff_t *offset) { if (!access_ok(VERIFY_WRITE, buffer, count)) return count; return -EFAULT; memset((void *)buffer, 0, count); Loading Loading @@ -2430,7 +2430,7 @@ static ssize_t send_invalid_packed_test_read(struct file *file, loff_t *offset) { if (!access_ok(VERIFY_WRITE, buffer, count)) return count; return -EFAULT; memset((void *)buffer, 0, count); Loading Loading @@ -2547,7 +2547,7 @@ static ssize_t write_packing_control_test_read(struct file *file, loff_t *offset) { if (!access_ok(VERIFY_WRITE, buffer, count)) return count; return -EFAULT; memset((void *)buffer, 0, count); Loading Loading @@ -2632,7 +2632,7 @@ static ssize_t bkops_test_read(struct file *file, loff_t *offset) { if (!access_ok(VERIFY_WRITE, buffer, count)) return count; return -EFAULT; memset((void *)buffer, 0, count); Loading Loading @@ -2723,7 +2723,7 @@ static ssize_t long_sequential_read_test_read(struct file *file, loff_t *offset) { if (!access_ok(VERIFY_WRITE, buffer, count)) return count; return -EFAULT; memset((void *)buffer, 0, count); Loading Loading @@ -2886,7 +2886,7 @@ static ssize_t long_sequential_write_test_read(struct file *file, loff_t *offset) { if (!access_ok(VERIFY_WRITE, buffer, count)) return count; return -EFAULT; memset((void *)buffer, 0, count); Loading Loading @@ -2962,7 +2962,7 @@ static ssize_t new_req_notification_test_read(struct file *file, loff_t *offset) { if (!access_ok(VERIFY_WRITE, buffer, count)) return count; return -EFAULT; memset((void *)buffer, 0, count); Loading Loading
drivers/mmc/card/mmc_block_test.c +9 −9 Original line number Diff line number Diff line /* Copyright (c) 2012-2013, The Linux Foundation. All rights reserved. /* Copyright (c) 2012-2014, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -2218,7 +2218,7 @@ static ssize_t send_write_packing_test_read(struct file *file, loff_t *offset) { if (!access_ok(VERIFY_WRITE, buffer, count)) return count; return -EFAULT; memset((void *)buffer, 0, count); Loading Loading @@ -2319,7 +2319,7 @@ static ssize_t err_check_test_read(struct file *file, loff_t *offset) { if (!access_ok(VERIFY_WRITE, buffer, count)) return count; return -EFAULT; memset((void *)buffer, 0, count); Loading Loading @@ -2430,7 +2430,7 @@ static ssize_t send_invalid_packed_test_read(struct file *file, loff_t *offset) { if (!access_ok(VERIFY_WRITE, buffer, count)) return count; return -EFAULT; memset((void *)buffer, 0, count); Loading Loading @@ -2547,7 +2547,7 @@ static ssize_t write_packing_control_test_read(struct file *file, loff_t *offset) { if (!access_ok(VERIFY_WRITE, buffer, count)) return count; return -EFAULT; memset((void *)buffer, 0, count); Loading Loading @@ -2632,7 +2632,7 @@ static ssize_t bkops_test_read(struct file *file, loff_t *offset) { if (!access_ok(VERIFY_WRITE, buffer, count)) return count; return -EFAULT; memset((void *)buffer, 0, count); Loading Loading @@ -2723,7 +2723,7 @@ static ssize_t long_sequential_read_test_read(struct file *file, loff_t *offset) { if (!access_ok(VERIFY_WRITE, buffer, count)) return count; return -EFAULT; memset((void *)buffer, 0, count); Loading Loading @@ -2886,7 +2886,7 @@ static ssize_t long_sequential_write_test_read(struct file *file, loff_t *offset) { if (!access_ok(VERIFY_WRITE, buffer, count)) return count; return -EFAULT; memset((void *)buffer, 0, count); Loading Loading @@ -2962,7 +2962,7 @@ static ssize_t new_req_notification_test_read(struct file *file, loff_t *offset) { if (!access_ok(VERIFY_WRITE, buffer, count)) return count; return -EFAULT; memset((void *)buffer, 0, count); Loading