Re: [PATCH 4/5] scsi_debug: fix invalid value check for guard module parameter

2013-09-20 Thread Martin K. Petersen
Akinobu == Akinobu Mita akinobu.m...@gmail.com writes: Akinobu In the module initialization, invalid value for guard module Akinobu parameter is detected by the following check: Akinobu if (scsi_debug_guard 1) { Akinobu printk(KERN_ERR scsi_debug_init: guard must be

[PATCH 4/5] scsi_debug: fix invalid value check for guard module parameter

2013-09-18 Thread Akinobu Mita
In the module initialization, invalid value for guard module parameter is detected by the following check: if (scsi_debug_guard 1) { printk(KERN_ERR scsi_debug_init: guard must be 0 or 1\n); return -EINVAL; } But this check isn't enough, because