mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
chzdev fails to generate correct cio_ignore udev-rules for a CCW device with device number 0xffff. Also chzdev aborts due to a segmentation fault when a CCW device with CSSID 0xff is configured. Both issues are caused by off-by-one errors while interpreting CCW device ID limits CSSID_MAX, SSID_MAX and DEVNO_MAX. Fix these errors by correctly interpreting CCW device ID limits. Signed-off-by: Peter Oberparleiter <oberpar@linux.ibm.com> Reviewed-by: Jan Höppner <hoeppner@linux.ibm.com> Reviewed-by: Vineeth Vijayan <vneethv@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>