From: Sebastian Ott Date: Tue, 21 Jun 2016 10:33:30 +0000 (+0200) Subject: s390/chsc: fix ioctl CHSC_INFO_CU command X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=6228c2a51edccf3e01fc4db065aac91b4cafdc76;p=linux-beck.git s390/chsc: fix ioctl CHSC_INFO_CU command Via CHSC_INFO_CU we ought to provide userspace with control unit configuration data. Due to an erroneous request code we trigger the wrong chsc command. Fix this copy and paste error. Signed-off-by: Sebastian Ott Reviewed-by: Cornelia Huck Signed-off-by: Martin Schwidefsky --- diff --git a/drivers/s390/cio/chsc_sch.c b/drivers/s390/cio/chsc_sch.c index b6f12c2bb114..735052ecd3e5 100644 --- a/drivers/s390/cio/chsc_sch.c +++ b/drivers/s390/cio/chsc_sch.c @@ -552,7 +552,7 @@ static int chsc_ioctl_info_cu(void __user *user_cd) goto out_free; } scucd_area->request.length = 0x0010; - scucd_area->request.code = 0x0028; + scucd_area->request.code = 0x0026; scucd_area->m = cd->m; scucd_area->fmt1 = cd->fmt; scucd_area->cssid = cd->cssid;