diff options
| author | Thadeu Lima de Souza Cascardo <[email protected]> | 2025-01-23 12:32:49 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2025-02-20 14:21:34 +0000 |
| commit | 6d991f569c5ef6eaeadf1238df2c36e3975233ad (patch) | |
| tree | 1f2426e4f187c4339f485931e8106b18bd387dea /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |
| parent | eeprom: digsy_mtc: Make GPIO lookup table match the device (diff) | |
| download | kernel-6d991f569c5ef6eaeadf1238df2c36e3975233ad.tar.gz kernel-6d991f569c5ef6eaeadf1238df2c36e3975233ad.zip | |
char: misc: deallocate static minor in error path
When creating sysfs files fail, the allocated minor must be freed such that
it can be later reused. That is specially harmful for static minor numbers,
since those would always fail to register later on.
Fixes: 6d04d2b554b1 ("misc: misc_minor_alloc to use ida for all dynamic/misc dynamic minors")
Cc: stable <[email protected]>
Signed-off-by: Thadeu Lima de Souza Cascardo <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
0 files changed, 0 insertions, 0 deletions
