Hans requested some changes for this patch: https://patchwork.linuxtv.org/project/linux-media/patch/20240506-cocci-locks-v1-5-a67952fe5d19@xxxxxxxxxxxx/ Refactor the patch and try again :). The changes have not been tested in real hardware, and Mauro expect that it is properly tested. Signed-off-by: Ricardo Ribalda <ribalda@xxxxxxxxxxxx> --- Changes in v3: - Add missing (dvbdev->users == -1 && fe->ops.ts_bus_ctrl) in __dvb_frontend_open() - Make explicit that the patchset has not been tested in real hardware. - Link to v2: https://lore.kernel.org/r/20240814-coccinelle-followup-v2-0-88b4e4a9af56@xxxxxxxxxxxx Changes in v2: - Checkpatch fixes. - Link to v1: https://lore.kernel.org/r/20240611-coccinelle-followup-v1-0-df2de9c2f320@xxxxxxxxxxxx --- Ricardo Ribalda (3): media: drivers/media/dvb-core: Split dvb_frontend_open() media: drivers/media/dvb-core: Refactor dvb_frontend_open locking media: drivers/media/dvb-core: CodoStyle for dvb_frontend_open() drivers/media/dvb-core/dvb_frontend.c | 159 +++++++++++++++++++--------------- 1 file changed, 91 insertions(+), 68 deletions(-) --- base-commit: 03a979b74dc1ad5aeed8026a84d8771842cb1631 change-id: 20240611-coccinelle-followup-f5a62b095f20 Best regards, -- Ricardo Ribalda <ribalda@xxxxxxxxxxxx>