commit | 6e03927a6e9c14c1218c607fe1249c3f0442dfb6 | [log] [tgz] |
---|---|---|
author | Jack Pham <jackp@codeaurora.org> | Tue Oct 02 11:22:05 2012 -0700 |
committer | Jack Pham <jackp@codeaurora.org> | Tue Oct 02 11:26:45 2012 -0700 |
tree | 050b2552d5143a8a5194e62a9464a7f6c1c7f108 | |
parent | fc0574b6a1ba8b595abc56088ddf66848a2c8e9b [diff] |
msm: usb_bam: Fix NULL pointer dereferences usb_bam_connect() might still be called even if the usb_bam platform device does not exist. Make sure to check that usb_bam_pdev is not NULL before attempting to initialize the SPS pipes. Also clean up other pdev instances in the dev_attr functions. Change-Id: I0702f6b18eeb67783e9e84d502d64b1042c36c96 Signed-off-by: Jack Pham <jackp@codeaurora.org>