From: Daniel Walker <dwalker@xxxxxxxxxx> drivers/scsi/megaraid.c: In function â??megadev_ioctlâ??: drivers/scsi/megaraid.c:3665: warning: ignoring return value of â??copy_to_userâ??, declared with attribute warn_unused_result Signed-off-by: Daniel Walker <dwalker@xxxxxxxxxx> Acked-by: Alan Cox <alan@xxxxxxxxxxxxxxxxxxx> Cc: <Neela.Kolli@xxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxx> --- drivers/scsi/megaraid.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff -puN drivers/scsi/megaraid.c~megaraid-gcc-41-warning-fix drivers/scsi/megaraid.c --- a/drivers/scsi/megaraid.c~megaraid-gcc-41-warning-fix +++ a/drivers/scsi/megaraid.c @@ -3662,8 +3662,9 @@ megadev_ioctl(struct inode *inode, struc * Send the request sense data also, irrespective of * whether the user has asked for it or not. */ - copy_to_user(upthru->reqsensearea, - pthru->reqsensearea, 14); + if (copy_to_user(upthru->reqsensearea, + pthru->reqsensearea, 14)) + rval = (-EFAULT); freemem_and_return: if( pthru->dataxferlen ) { _ - : send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html