diff options
author | Rajendra Nayak <rnayak@codeaurora.org> | 2017-08-02 09:45:42 +0200 |
---|---|---|
committer | Felipe Balbi <felipe.balbi@linux.intel.com> | 2017-08-03 11:32:13 +0200 |
commit | 5a8141bd41f0e7f7758956e2340e10cdf5f2b0b9 (patch) | |
tree | 857007257b032cabe922a0c8fc35faa8cb42180a /drivers/usb/renesas_usbhs/rcar3.c | |
parent | usb: gadget: udc: renesas_usb3: Fix usb_gadget_giveback_request() calling (diff) | |
download | linux-5a8141bd41f0e7f7758956e2340e10cdf5f2b0b9.tar.xz linux-5a8141bd41f0e7f7758956e2340e10cdf5f2b0b9.zip |
usb: phy: phy-msm-usb: Fix usage of devm_regulator_bulk_get()
The regulator_bulk_data pointer passed to devm_regulator_bulk_get()
is used to store the client handles for the regulators, which
is later used by devm_regulator_bulk_release() to free the
regulators.
Passing a local array as is done here means the memory used to
store the handles is freed causing the handles to be corrupted,
resulting in a crash when devm_regulator_bulk_release() tries to
free them.
Fix this my moving the array inside of the msm_otg structure.
Signed-off-by: Rajendra Nayak <rnayak@codeaurora.org>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb/renesas_usbhs/rcar3.c')
0 files changed, 0 insertions, 0 deletions