]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
media: mc: Clear minor number before put device
authorEdward Adam Davis <eadavis@qq.com>
Wed, 10 Sep 2025 01:15:27 +0000 (09:15 +0800)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Wed, 10 Sep 2025 08:42:13 +0000 (10:42 +0200)
commit8cfc8cec1b4da88a47c243a11f384baefd092a50
treeda83ed73cf5b306f8e2cdd5141e6783540ee7e92
parent895d3b4b5832edefd2f1fbad9d75c0179f47fe0e
media: mc: Clear minor number before put device

The device minor should not be cleared after the device is released.

Fixes: 9e14868dc952 ("media: mc: Clear minor number reservation at unregistration time")
Cc: stable@vger.kernel.org
Reported-by: syzbot+031d0cfd7c362817963f@syzkaller.appspotmail.com
Closes: https://syzkaller.appspot.com/bug?extid=031d0cfd7c362817963f
Tested-by: syzbot+031d0cfd7c362817963f@syzkaller.appspotmail.com
Signed-off-by: Edward Adam Davis <eadavis@qq.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/mc/mc-devnode.c