[PATCH] media: cedrus: fix use after free bug in cedrus_remove due to race condition

Dan Carpenter dan.carpenter at linaro.org
Fri Sep 15 05:33:40 PDT 2023


No, the code is okay.  The works is created in probe() and canceled in
remove().  You've added a new cancel in release() which is the wrong
place.  probe() pairs with remove().  open() pairs with release().

regards,
dan carpenter




More information about the linux-arm-kernel mailing list