aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_subr.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2022-04-13 10:36:40 +0300
committerAlex Deucher <[email protected]>2022-04-14 15:24:22 -0400
commitabb5bc59490067b88ed006cdb58f3ff1d12057cc (patch)
tree253ca9eaca167521e89038f544d0b74ce12bd13e /net/lapb/lapb_subr.c
parent46d18d510d78318c4aa5aaeff66782f1ec42c2ec (diff)
drm/amdkfd: potential NULL dereference in kfd_set/reset_event()
If lookup_event_by_id() returns a NULL "ev" pointer then the spin_lock(&ev->lock) will crash. This was detected by Smatch: drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_events.c:644 kfd_set_event() error: we previously assumed 'ev' could be null (see line 639) Fixes: 5273e82c5f47 ("drm/amdkfd: Improve concurrency of event handling") Signed-off-by: Dan Carpenter <[email protected]> Reviewed-by: Felix Kuehling <[email protected]> Signed-off-by: Felix Kuehling <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions