diff options
author | John W. Linville <linville@tuxdriver.com> | 2013-06-26 18:01:42 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-06-26 18:01:42 +0200 |
commit | 729d8d182bbf296b32cb2e7f970801eb6ce33c6a (patch) | |
tree | 9c44494da905a87373c1a1e16a1eb7db8d119cee /net/bluetooth | |
parent | Merge branch 'for-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/... (diff) | |
parent | Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/blueto... (diff) | |
download | linux-729d8d182bbf296b32cb2e7f970801eb6ce33c6a.tar.xz linux-729d8d182bbf296b32cb2e7f970801eb6ce33c6a.zip |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless
Diffstat (limited to 'net/bluetooth')
-rw-r--r-- | net/bluetooth/l2cap_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c index 9af3a76844f7..8c3499bec893 100644 --- a/net/bluetooth/l2cap_core.c +++ b/net/bluetooth/l2cap_core.c @@ -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); |