From daa3c9a075c6aae19d5e77ea50f2ee46304c1f0c Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Tue, 30 Sep 2014 11:07:38 +0000 Subject: [PATCH] scst_local: Restore support for detecting LUN 16383 via a sequential scan Reported-by: Sebastian Herbszt git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5820 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst_local/scst_local.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scst_local/scst_local.c b/scst_local/scst_local.c index 771532619..d17fc9d47 100644 --- a/scst_local/scst_local.c +++ b/scst_local/scst_local.c @@ -1678,7 +1678,7 @@ static int scst_local_driver_probe(struct device *dev) sess->shost = hpnt; hpnt->max_id = 1; /* Don't want more than one id */ - hpnt->max_lun = SCST_MAX_LUN; + hpnt->max_lun = SCST_MAX_LUN + 1; /* * Because of a change in the size of this field at 2.6.26