Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d955330d authored by AnilKumar Chimata's avatar AnilKumar Chimata
Browse files

crypto: msm: Fix NULL pointer exception



NULL pointer is dereferenced after checking with NULL, which
needs to fix to avoid NULL pointer exception.

Change-Id: I2a95c2f74b72e43931b6fe93671953a27566d8a3
Signed-off-by: default avatarAnilKumar Chimata <anilc@codeaurora.org>
parent c77acc02
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -1997,10 +1997,12 @@ static inline long qcedev_ioctl(struct file *file,
	}

exit_free_qcedev_areq:
	if (podev) {
		if (podev->platform_support.bus_scale_table != NULL &&
				cmd != QCEDEV_IOCTL_MAP_BUF_REQ &&
				cmd != QCEDEV_IOCTL_UNMAP_BUF_REQ)
			qcedev_ce_high_bw_req(podev, false);
	}
	kfree(qcedev_areq);
	return err;
}