[bug report] Bluetooth: mgmt: Introduce mgmt_alloc_skb and mgmt_send_event_skb

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux