]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/scsi/cxlflash/main.c
scsi: cxlflash: Adapter context init can return error
authorUma Krishnan <ukrishn@linux.vnet.ibm.com>
Wed, 3 Jan 2018 22:55:04 +0000 (16:55 -0600)
committerSeth Forshee <seth.forshee@canonical.com>
Tue, 27 Mar 2018 19:01:33 +0000 (14:01 -0500)
commit4a275afe0f602de87e5dd83f4675e71d677c5e08
treeb9bf86634bc7d9e156d62363d8191329495becae
parent6d303ec453c1974bb95c29e57c58a45cba73a125
scsi: cxlflash: Adapter context init can return error

BugLink: http://bugs.launchpad.net/bugs/1752672
Adapter context creation can return either NULL or an error pointer.
Updating the check condition to reflect this.

Signed-off-by: Uma Krishnan <ukrishn@linux.vnet.ibm.com>
Acked-by: Matthew R. Ochs <mrochs@linux.vnet.ibm.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
(cherry picked from commit 0df69c6024cd089144d3b38f12352899dd4e40b1)
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/scsi/cxlflash/main.c