summaryrefslogtreecommitdiff
path: root/security/selinux/hooks.c
diff options
context:
space:
mode:
authorVijayavardhan Vennapusa <vvreddy@codeaurora.org>2017-09-08 15:40:21 +0530
committerVijayavardhan Vennapusa <vvreddy@codeaurora.org>2017-09-11 15:50:21 +0530
commit4fe177ec8802b0543e01c583e8c45b46384a08c5 (patch)
tree4e40606cd104e598394cf046c3a73e0048f8b49c /security/selinux/hooks.c
parent8aedd7084222d4cce3acdfe3c71820c674503bee (diff)
usb_bam: Delete IPA resources in usb_bam_remove()
Whenever dwc3_msm_probe() fails, it calls of_depopulate() to remove child devices as part of cleanup. Due to this, usb_bam_remove() gets called to do cleanup. But this API is not deleting IPA resources created during probe and leads to creation of IPA resources fail, when probe is called again. This eventually results in crash, when IPA driver calls notify callback after PROD resource granted. Hence fix it by deleting IPA resources in usb_bam_remove(). Also change enum type of ipa_rm_resource_prod/ipa_rm_resource_cons arrays to enum ipa_rm_resource_name to fix sparse errors. Change-Id: I3d9d0e1b26f1de0ba2b56b42c7e10a097d4fa8be Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions