aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/pwm-fan.c
diff options
context:
space:
mode:
authorDmitry Osipenko <[email protected]>2022-10-30 15:44:11 +0000
committerDmitry Osipenko <[email protected]>2022-11-02 10:52:38 +0000
commitd3292daee319581d0a502fcd8ef3c3c285a1750a (patch)
tree5a9d686cfb246c4312757b23ae2e8653ea34a764 /drivers/hwmon/pwm-fan.c
parentdrm/ttm: fix undefined behavior in bit shift for TTM_TT_FLAG_PRIV_POPULATED (diff)
downloadkernel-d3292daee319581d0a502fcd8ef3c3c285a1750a.tar.gz
kernel-d3292daee319581d0a502fcd8ef3c3c285a1750a.zip
dma-buf: Make locking consistent in dma_buf_detach()
The dma_buf_detach() locks attach->dmabuf->resv and then unlocks dmabuf->resv, which could be a two different locks from a static code checker perspective. In particular this triggers Smatch to report the "double unlock" error. Make the locking pointers consistent. Reported-by: Dan Carpenter <[email protected]> Reviewed-by: Christian König <[email protected]> Link: https://lore.kernel.org/dri-devel/Y1fLfsccW3AS%2Fo+%2F@kili/ Fixes: 809d9c72c2f8 ("dma-buf: Move dma_buf_attach() to dynamic locking specification") Signed-off-by: Dmitry Osipenko <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/hwmon/pwm-fan.c')
0 files changed, 0 insertions, 0 deletions