mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
Currently, a device type setting being --removed from both the active and persistent configuration via 'chzdev -t' can result in a scenario where the setting is not removed from the active configuration (and an error message is presented) but chzdev still proceeds to remove the setting from the persistent configuration. Update this logic so that devtype_remove_settings behaves the same way as device_remove_settings and only perform the removal when no errors are encountered. Reported-by: Boris Fiuczynski <fiuczy@linux.ibm.com> Reviewed-by: Jason J. Herne <jjherne@linux.ibm.com> Reviewed-by: Boris Fiuczynski <fiuczy@linux.ibm.com> Reviewed-by: Peter Oberparleiter <oberpar@linux.ibm.com> Signed-off-by: Matthew Rosato <mjrosato@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>