summaryrefslogtreecommitdiff
path: root/include/linux/stackprotector.h
diff options
context:
space:
mode:
authorSusheel Khiani <skhiani@codeaurora.org>2015-12-28 12:22:41 +0530
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 21:16:17 -0700
commita0be776046a6028ab12eb1a1bed660cbdf8861b1 (patch)
treec40dab7e305c5a0683d779c772beb10d9e16efa2 /include/linux/stackprotector.h
parent52939ea591795252c735ab9a42e023a21c81cba9 (diff)
iommu: Add NULL pointer check in iommu_present function
We call msm_iommu_bus_register only when legacy msm iommu driver is enabled. If for some reason the driver is disabled, we never register our dummy bus msm_iommu_non_sec_bus_type. So, we might end up with NULL pointer exception if clients try to call iommu_present with this dummy bus. Put a NULL pointer check to ensure we don't end up crashing system if legacy driver is disabled. Change-Id: I7122e3355459e5115d639a8c1aab547bf0fc7f6e Signed-off-by: Susheel Khiani <skhiani@codeaurora.org>
Diffstat (limited to 'include/linux/stackprotector.h')
0 files changed, 0 insertions, 0 deletions