scsi: fcoe: catch invalid values for the 'enabled' attribute
authorHannes Reinecke <hare@suse.de>
Thu, 13 Oct 2016 13:10:57 +0000 (15:10 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 8 Nov 2016 22:29:53 +0000 (17:29 -0500)
commit5cc5512690537fcfafd50a5941cdbdb9f4134308
tree70007f24bbb133c2ad1ffac7494e81ee21a353f7
parentc216e8762f96b6bddf043b5788094e0b698dd4b3
scsi: fcoe: catch invalid values for the 'enabled' attribute

The 'enabled' sysfs attribute only accepts the values '0' and '1',
so we should error out any other values.

Signed-off-by: Hannes Reinecke <hare@suse.com>
Acked-by: Johannes Thumshirn <jth@kernel.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/fcoe/fcoe_sysfs.c