You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
[PATCH] ehea: Nullpointer dereferencation fix
Fix: Must check for nullpointer before dereferencing it - not afterwards. Signed-off-by: Thomas Klein <tklein@de.ibm.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
This commit is contained in:
committed by
Jeff Garzik
parent
d1ed6a3ea1
commit
1b5135d9b9
@@ -209,11 +209,11 @@ int ehea_destroy_cq(struct ehea_cq *cq)
|
||||
{
|
||||
u64 adapter_handle, hret;
|
||||
|
||||
adapter_handle = cq->adapter->handle;
|
||||
|
||||
if (!cq)
|
||||
return 0;
|
||||
|
||||
adapter_handle = cq->adapter->handle;
|
||||
|
||||
/* deregister all previous registered pages */
|
||||
hret = ehea_h_free_resource(adapter_handle, cq->fw_handle);
|
||||
if (hret != H_SUCCESS) {
|
||||
|
||||
Reference in New Issue
Block a user