media: mgb4: Fix double debugfs remove
authorMartin Tůma <martin.tuma@digiteqautomotive.com>
Tue, 21 May 2024 16:22:54 +0000 (18:22 +0200)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Mon, 27 May 2024 09:33:56 +0000 (11:33 +0200)
commit825fc49497957310e421454fe3fb8b8d8d8e2dd2
tree17623c0fed7611fde985b5ad2c410a182f2dee2f
parent1613e604df0cd359cf2a7fbd9be7a0bcfacfabd0
media: mgb4: Fix double debugfs remove

Fixes an error where debugfs_remove_recursive() is called first on a parent
directory and then again on a child which causes a kernel panic.

Signed-off-by: Martin Tůma <martin.tuma@digiteqautomotive.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Fixes: 0ab13674a9bd ("media: pci: mgb4: Added Digiteq Automotive MGB4 driver")
Cc: <stable@vger.kernel.org>
[hverkuil: added Fixes/Cc tags]
drivers/media/pci/mgb4/mgb4_core.c