Commit 8cab0e9
usb: chipidea: ci_hdrc_imx: fix call balance of regulator routines
Upon encountering errors during the HSIC pinctrl handling section the
regulator should be disabled.
Use devm_add_action_or_reset() to let the regulator-disabling routine be
handled by device resource management stack.
Found by Linux Verification Center (linuxtesting.org).
Fixes: 4d61412 ("usb: chipidea: imx: pinctrl for HSIC is optional")
Cc: stable <[email protected]>
Signed-off-by: Fedor Pchelkin <[email protected]>
Acked-by: Peter Chen <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>1 parent 4e28f79 commit 8cab0e9
1 file changed
+17
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
336 | 336 | | |
337 | 337 | | |
338 | 338 | | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
339 | 346 | | |
340 | 347 | | |
341 | 348 | | |
| |||
394 | 401 | | |
395 | 402 | | |
396 | 403 | | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
397 | 411 | | |
398 | 412 | | |
399 | 413 | | |
| |||
432 | 446 | | |
433 | 447 | | |
434 | 448 | | |
435 | | - | |
| 449 | + | |
436 | 450 | | |
437 | 451 | | |
438 | 452 | | |
439 | | - | |
| 453 | + | |
440 | 454 | | |
441 | 455 | | |
442 | 456 | | |
| |||
526 | 540 | | |
527 | 541 | | |
528 | 542 | | |
529 | | - | |
530 | | - | |
531 | | - | |
532 | | - | |
| 543 | + | |
533 | 544 | | |
534 | 545 | | |
535 | 546 | | |
| |||
557 | 568 | | |
558 | 569 | | |
559 | 570 | | |
560 | | - | |
561 | | - | |
562 | 571 | | |
563 | 572 | | |
564 | 573 | | |
| |||
0 commit comments