]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[S390] handle incorrect values when writing to dasd sysfs attributes.
authorHorst Hummel <horst.hummel@de.ibm.com>
Mon, 4 Dec 2006 14:39:50 +0000 (15:39 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 4 Dec 2006 14:39:50 +0000 (15:39 +0100)
commit01376f4495840f3daf6d73679242b5964fc9603b
tree51ef99991b42d6c623e5f1be980ff04026cc3ebb
parent26916264c17b5af8a3eaaf83b128f85cf1107cff
[S390] handle incorrect values when writing to dasd sysfs attributes.

When writing to dasd attributes (e.g. readonly), all values besides '1'
are handled like '0'.
Other sysfs-attributes like 'online' are checking for '1' and for '0'
and do not accept other values. Therefore enhanced checking and error
handling in dasd_devmap attribute store functions.

Signed-off-by: Horst Hummel <horst.hummel@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/block/dasd_devmap.c