diff options
author | James Bottomley <jejb@linux.ibm.com> | 2020-11-29 02:27:21 +0300 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2023-02-22 01:44:06 +0300 |
commit | 3fe97ff3d94934649abb0652028dd7296170c8d0 (patch) | |
tree | 66dd5af93c610b2406bd9b360b428cf2975c19a5 /include/scsi | |
parent | 578797f0c8cbc2e3ec5fc0dab87087b4c7073686 (diff) | |
download | linux-3fe97ff3d94934649abb0652028dd7296170c8d0.tar.xz |
scsi: ses: Don't attach if enclosure has no components
An enclosure with no components can't usefully be operated by the driver
(since effectively it has nothing to manage), so report the problem and
don't attach. Not attaching also fixes an oops which could occur if the
driver tries to manage a zero component enclosure.
[mkp: Switched to KERN_WARNING since this scenario is common]
Link: https://lore.kernel.org/r/c5deac044ac409e32d9ad9968ce0dcbc996bfc7a.camel@linux.ibm.com
Cc: stable@vger.kernel.org
Reported-by: Ding Hui <dinghui@sangfor.com.cn>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'include/scsi')
0 files changed, 0 insertions, 0 deletions