]> git.karo-electronics.de Git - linux-beck.git/commitdiff
s390/chsc: fix ioctl CHSC_INFO_CU command
authorSebastian Ott <sebott@linux.vnet.ibm.com>
Tue, 21 Jun 2016 10:33:30 +0000 (12:33 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 15 Jul 2016 12:31:58 +0000 (14:31 +0200)
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 <sebott@linux.vnet.ibm.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/cio/chsc_sch.c

index b6f12c2bb114a66edab03ecd79789bf978bcf787..735052ecd3e57e320136ad440612eca26340d97c 100644 (file)
@@ -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;