Commit e11a9ad
mfd: ls2kbmc: Fully convert to use managed resources
The mixing of managed and non-managed resources may lead to possible
use-after-free bugs. In this driver the problematic part is the device
functionality that may just have gone behind the functions back, e.g.,
when interrupt is being served. Fix this by switching to managed resources
for PCI.
Fixes: 91a3e1f ("mfd: ls2kbmc: Check for devm_mfd_add_devices() failure")
Fixes: d952bba ("mfd: ls2kbmc: Add Loongson-2K BMC reset function support")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Binbin Zhou <zhoubinbin@loongson.cn>
Link: https://patch.msgid.link/20251030113735.3741913-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Lee Jones <lee@kernel.org>1 parent 71ae8ab commit e11a9ad
1 file changed
Lines changed: 9 additions & 27 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
464 | 464 | | |
465 | 465 | | |
466 | 466 | | |
467 | | - | |
| 467 | + | |
468 | 468 | | |
469 | 469 | | |
470 | 470 | | |
471 | 471 | | |
472 | | - | |
473 | | - | |
474 | | - | |
475 | | - | |
| 472 | + | |
| 473 | + | |
476 | 474 | | |
477 | 475 | | |
478 | 476 | | |
479 | 477 | | |
480 | 478 | | |
481 | | - | |
| 479 | + | |
482 | 480 | | |
483 | 481 | | |
484 | 482 | | |
485 | | - | |
| 483 | + | |
486 | 484 | | |
487 | 485 | | |
488 | 486 | | |
489 | 487 | | |
490 | 488 | | |
491 | 489 | | |
492 | 490 | | |
493 | | - | |
494 | | - | |
495 | | - | |
496 | | - | |
497 | | - | |
498 | | - | |
499 | | - | |
500 | | - | |
501 | 491 | | |
502 | | - | |
| 492 | + | |
503 | 493 | | |
504 | | - | |
505 | | - | |
506 | | - | |
507 | | - | |
508 | | - | |
509 | | - | |
510 | | - | |
511 | | - | |
512 | | - | |
513 | | - | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
514 | 497 | | |
515 | 498 | | |
516 | 499 | | |
| |||
523 | 506 | | |
524 | 507 | | |
525 | 508 | | |
526 | | - | |
527 | 509 | | |
528 | 510 | | |
529 | 511 | | |
| |||
0 commit comments