]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: hidp: Fix regression with older userspace and flags validation
authorMarcel Holtmann <marcel@holtmann.org>
Fri, 17 Apr 2015 20:34:18 +0000 (22:34 +0200)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 18 Apr 2015 15:01:08 +0000 (11:01 -0400)
commit3148294255bef2ce346ce8d6c9967e7f7667d081
treeeabace3c7c92ce8572e933eb7e5e65f99d6c5aa0
parente3ba1383a330a2d385f623a782238b96207c5e12
Bluetooth: hidp: Fix regression with older userspace and flags validation

While it is not used by newer userspace anymore, the older userspace was
utilizing HIDP_VIRTUAL_CABLE_UNPLUG and HIDP_BOOT_PROTOCOL_MODE flags
when adding a new HIDP connection.

The flags validation is important, but we can not break older userspace
and with that allow providing these flags even if newer userspace does
not use them anymore.

Reported-and-tested-by: Jörg Otte <jrg.otte@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
net/bluetooth/hidp/core.c