Loading
media: dvb-usb-v2: af9035: fix missing unlock
stable inclusion from stable-v5.10.201 commit 1b86938925bdd618aea295f64874978d3b209e5f category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/IAPHC5 CVE: CVE-2023-52915 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=1b86938925bdd618aea295f64874978d3b209e5f -------------------------------- [ Upstream commit f31b2cb85f0ee165d78e1c43f6d69f82cc3b2145 ] Instead of returning an error, goto the mutex unlock at the end of the function. Fixes smatch warning: drivers/media/usb/dvb-usb-v2/af9035.c:467 af9035_i2c_master_xfer() warn: inconsistent returns '&d->i2c_mutex'. Locked on : 326,387 Unlocked on: 465,467 Signed-off-by:Hans Verkuil <hverkuil-cisco@xs4all.nl> Fixes: 7bf744f2 ("media: dvb-usb-v2: af9035: Fix null-ptr-deref in af9035_i2c_master_xfer") Signed-off-by:
Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
sanglipeng <sanglipeng1@jd.com> Signed-off-by:
Ye Bin <yebin10@huawei.com>