]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: cxlflash: fix assignment of the backend operations
authorCédric Le Goater <clg@kaod.org>
Thu, 5 Jul 2018 05:26:23 +0000 (07:26 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 11 Jul 2018 02:29:54 +0000 (22:29 -0400)
commitc82bf0ace27ab45840a934757a53da0f4cf9566b
treec1722694d96e514cdd397974ba18325c16c29530
parenta699aa3426ec1acd5ea52f3dacfc29b2c5b4529e
scsi: cxlflash: fix assignment of the backend operations

commit ddd41b4ff67a ("scsi: cxlflash: Isolate external module
dependencies") introduced the use of ifdefs to avoid compilation errors
when one of the possible backend driver, CXL or OCXL, is not compiled.

Unfortunately, the wrong defines are used and the backend ops are never
assigned, leading to a kernel crash in any case when the cxlflash module is
loaded.

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Acked-by: Matthew R. Ochs <mrochs@linux.vnet.ibm.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/cxlflash/main.h