From: Bastian Blank Date: Fri, 24 Mar 2006 11:15:32 +0000 (-0800) Subject: [PATCH] dasd: "cleanup dasd_ioctl" fix X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b5029622ac86bb441dc5e641226fb1152fca02d7;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git [PATCH] dasd: "cleanup dasd_ioctl" fix Cast the argument correctly. Cc: Christoph Hellwig Cc: Martin Schwidefsky Cc: Heiko Carstens Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/s390/block/dasd_ioctl.c b/drivers/s390/block/dasd_ioctl.c index d0c2d732dcff..b8c80d28df41 100644 --- a/drivers/s390/block/dasd_ioctl.c +++ b/drivers/s390/block/dasd_ioctl.c @@ -29,7 +29,7 @@ static int dasd_ioctl_api_version(void __user *argp) { int ver = DASD_API_VERSION; - return put_user(ver, (int *)argp); + return put_user(ver, (int __user *)argp); } /*