msm: ipa: Fix array out of bound and use after NULL check
Couple of code cleanup
- Check for upper boundary for resource_index
not to dependent on ipa_rm_dep_get_index function.
- Check actual argument for NULL and return.
Change-Id: I0ab244e68d96f7841ab2a10e61f2546314166165
Signed-off-by:
Mohammed Javid <mjavid@codeaurora.org>
Loading
Please register or sign in to comment