From 0c9ac4e16ce2fa1b93708c2f1ca639f5788cfa1e Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Tue, 13 Feb 2024 10:36:45 +0300 Subject: [PATCH] db/kernel.return_fixes: delete __hci_cmd_sync_sk() There used to be a bunch of warnings about __hci_cmd_sync_sk() returning NULL as well as error pointers. I silenced those "false positives" but I guess it turns out that it can return NULL and it led to some NULL dereference bugs. Doh! Signed-off-by: Dan Carpenter --- smatch_data/db/kernel.return_fixes | 1 - 1 file changed, 1 deletion(-) diff --git a/smatch_data/db/kernel.return_fixes b/smatch_data/db/kernel.return_fixes index ca310030..36c63472 100644 --- a/smatch_data/db/kernel.return_fixes +++ b/smatch_data/db/kernel.return_fixes @@ -95,7 +95,6 @@ wait_for_common s64min-s64max 0-s64max[<=$1] ww_mutex_lock (-35),(-4) (-35) ww_mutex_lock_interruptible (-35),(-4) (-4) xa_err s32min-s32max[$0\ >>\ 2] (-4095)-(-1)[$0\ >>\ 2] -__hci_cmd_sync_sk 0-u64max[$0->req_skb] 4096-ptr_max[$0->req_skb] class_raw_spinlock_irqsave_lock_ptr 0-u64max[$0->lock] 4096-ptr_max[$0->lock] class_spinlock_irqsave_lock_ptr 0-u64max[$0->lock] 4096-ptr_max[$0->lock] class_raw_spinlock_lock_ptr 0-u64max[$0->lock] 4096-ptr_max[$0->lock] -- 2.11.4.GIT