diff options
| author | Mauro Carvalho Chehab <[email protected]> | 2024-11-06 20:50:55 +0000 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2024-11-06 21:32:52 +0000 |
| commit | a4aebaf6e6efff548b01a3dc49b4b9074751c15b (patch) | |
| tree | 9739018d04653aa873cab3a41ac0447b5f972c9b /rust/helpers/helpers.c | |
| parent | media: vivid: fix buffer overwrite when using > 32 buffers (diff) | |
| download | kernel-a4aebaf6e6efff548b01a3dc49b4b9074751c15b.tar.gz kernel-a4aebaf6e6efff548b01a3dc49b4b9074751c15b.zip | |
media: dvbdev: fix the logic when DVB_DYNAMIC_MINORS is not set
When CONFIG_DVB_DYNAMIC_MINORS, ret is not initialized, and a
semaphore is left at the wrong state, in case of errors.
Make the code simpler and avoid mistakes by having just one error
check logic used weather DVB_DYNAMIC_MINORS is used or not.
Reported-by: kernel test robot <[email protected]>
Reported-by: Dan Carpenter <[email protected]>
Closes: https://lore.kernel.org/r/[email protected]/
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Link: https://lore.kernel.org/r/9e067488d8935b8cf00959764a1fa5de85d65725.1730926254.git.mchehab+huawei@kernel.org
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions
