scsi: qla2xxx: don't allow negative thresholds
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 20 Sep 2018 10:02:36 +0000 (13:02 +0300)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 27 Sep 2018 23:50:32 +0000 (19:50 -0400)
commit1703659dada8a5bfe9c31db6436792cbca1e26ea
tree6f24aaf98ef4fcfb0810865edbbd19f1afcc7093
parent84e13c453d8666195fbffb4b596e81daf78e2f11
scsi: qla2xxx: don't allow negative thresholds

We shouldn't allow negative thresholds.  I don't know what it would do
but it can't be good.

Fixes: 8b4673ba3a1b ("scsi: qla2xxx: Add support for ZIO6 interrupt threshold")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Himanshu Madhani <himanshu.madhani@cavium.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_attr.c