Commit be5eb93
nvme: fix per-namespace chardev deletion
Decrease reference count of chardevice during char device deletion in
order to fix a memory leak. Add a release callabck for the device
associated chardev and move ida_simple_remove into the release function.
Fixes: 2637bae ("nvme: introduce generic per-namespace chardev")
Reported-by: Yi Zhang <yi.zhang@redhat.com>
Suggested-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Adam Manzanares <a.manzanares@samsung.com>
Reviewed-by: Javier González <javier@javigon.com>
Tested-by: Yi Zhang <yi.zhang@redhat.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>1 parent 85f74ac commit be5eb93
2 files changed
Lines changed: 12 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3548 | 3548 | | |
3549 | 3549 | | |
3550 | 3550 | | |
| 3551 | + | |
| 3552 | + | |
| 3553 | + | |
| 3554 | + | |
| 3555 | + | |
3551 | 3556 | | |
3552 | 3557 | | |
3553 | 3558 | | |
3554 | | - | |
| 3559 | + | |
3555 | 3560 | | |
3556 | 3561 | | |
3557 | 3562 | | |
| |||
3564 | 3569 | | |
3565 | 3570 | | |
3566 | 3571 | | |
| 3572 | + | |
3567 | 3573 | | |
3568 | 3574 | | |
3569 | 3575 | | |
3570 | 3576 | | |
3571 | | - | |
| 3577 | + | |
3572 | 3578 | | |
3573 | | - | |
3574 | | - | |
| 3579 | + | |
3575 | 3580 | | |
3576 | 3581 | | |
3577 | 3582 | | |
| |||
3603 | 3608 | | |
3604 | 3609 | | |
3605 | 3610 | | |
3606 | | - | |
3607 | | - | |
3608 | | - | |
3609 | | - | |
3610 | | - | |
| 3611 | + | |
| 3612 | + | |
| 3613 | + | |
3611 | 3614 | | |
3612 | 3615 | | |
3613 | 3616 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
431 | 431 | | |
432 | 432 | | |
433 | 433 | | |
434 | | - | |
435 | | - | |
436 | 434 | | |
437 | 435 | | |
438 | 436 | | |
| |||
0 commit comments