Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <sebott@linux.vnet.ibm.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>

authored by

Sebastian Ott and committed by
Martin Schwidefsky
6228c2a5 388b74d3

+1 -1
+1 -1
drivers/s390/cio/chsc_sch.c
··· 552 552 goto out_free; 553 553 } 554 554 scucd_area->request.length = 0x0010; 555 - scucd_area->request.code = 0x0028; 555 + scucd_area->request.code = 0x0026; 556 556 scucd_area->m = cd->m; 557 557 scucd_area->fmt1 = cd->fmt; 558 558 scucd_area->cssid = cd->cssid;