]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - net/bluetooth/l2cap_core.c
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless
[mirror_ubuntu-jammy-kernel.git] / net / bluetooth / l2cap_core.c
index 9af3a76844f7cad16f4834f5690ba3bf0e7ab786..8c3499bec89319289073b2f1e7f3f202cd179ca6 100644 (file)
@@ -4334,7 +4334,7 @@ static inline int l2cap_information_rsp(struct l2cap_conn *conn,
        struct l2cap_info_rsp *rsp = (struct l2cap_info_rsp *) data;
        u16 type, result;
 
-       if (cmd_len != sizeof(*rsp))
+       if (cmd_len < sizeof(*rsp))
                return -EPROTO;
 
        type   = __le16_to_cpu(rsp->type);