From: Dan Carpenter <dan.carpenter@oracle.com>
To: luiz.von.dentz@intel.com
Cc: linux-bluetooth@vger.kernel.org
Subject: [bug report] Bluetooth: mgmt: Introduce mgmt_alloc_skb and mgmt_send_event_skb
Date: Thu, 9 Dec 2021 18:08:51 +0300 [thread overview]
Message-ID: <20211209150851.GA14075@kili> (raw)
Hello Luiz Augusto von Dentz,
This is a semi-automatic email about new static checker warnings.
The patch 8aca46f91c42: "Bluetooth: mgmt: Introduce mgmt_alloc_skb
and mgmt_send_event_skb" from Dec 3, 2021, leads to the following
Smatch complaint:
net/bluetooth/mgmt_util.c:82 mgmt_send_event_skb()
warn: variable dereferenced before check 'skb' (see line 80)
net/bluetooth/mgmt_util.c
79 struct mgmt_hdr *hdr;
80 int len = skb->len;
^^^^^^^^^
Dereference
81
82 if (!skb)
^^^^
Too late
83 return -EINVAL;
84
regards,
dan carpenter
reply other threads:[~2021-12-09 15:09 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211209150851.GA14075@kili \
--to=dan.carpenter@oracle.com \
--cc=linux-bluetooth@vger.kernel.org \
--cc=luiz.von.dentz@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox