Luiz Augusto von Dentz
774ca061d4
Bluetooth: L2CAP: Fix build errors in some archs
commit b840304fb46cdf7012722f456bce06f151b3e81b upstream.
This attempts to fix the follow errors:
In function 'memcmp',
inlined from 'bacmp' at ./include/net/bluetooth/bluetooth.h:347:9,
inlined from 'l2cap_global_chan_by_psm' at
net/bluetooth/l2cap_core.c:2003:15:
./include/linux/fortify-string.h:44:33: error: '__builtin_memcmp'
specified bound 6 exceeds source size 0 [-Werror=stringop-overread]
44 | #define __underlying_memcmp __builtin_memcmp
| ^
./include/linux/fortify-string.h:420:16: note: in expansion of macro
'__underlying_memcmp'
420 | return __underlying_memcmp(p, q, size);
| ^~~~~~~~~~~~~~~~~~~
In function 'memcmp',
inlined from 'bacmp' at ./include/net/bluetooth/bluetooth.h:347:9,
inlined from 'l2cap_global_chan_by_psm' at
net/bluetooth/l2cap_core.c:2004:15:
./include/linux/fortify-string.h:44:33: error: '__builtin_memcmp'
specified bound 6 exceeds source size 0 [-Werror=stringop-overread]
44 | #define __underlying_memcmp __builtin_memcmp
| ^
./include/linux/fortify-string.h:420:16: note: in expansion of macro
'__underlying_memcmp'
420 | return __underlying_memcmp(p, q, size);
| ^~~~~~~~~~~~~~~~~~~
Fixes: 332f1795ca20 ("Bluetooth: L2CAP: Fix l2cap_global_chan_by_psm regression")
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Cc: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-09-05 10:25:06 +02:00
..
2020-01-27 14:46:30 +01:00
2022-08-25 11:11:30 +02:00
2021-08-04 12:22:14 +02:00
2021-01-17 13:58:58 +01:00
2021-04-07 12:47:02 +02:00
2020-10-01 13:12:42 +02:00
2022-04-27 13:15:32 +02:00
2022-05-18 09:18:05 +02:00
2022-09-05 10:25:06 +02:00
2021-12-22 09:17:58 +01:00
2022-09-05 10:25:03 +02:00
2021-09-22 11:45:33 +02:00
2022-04-20 09:08:28 +02:00
2020-11-05 11:07:03 +01:00
2022-09-05 10:25:04 +02:00
2022-03-08 19:01:58 +01:00
2022-08-25 11:11:20 +02:00
2021-07-28 11:12:18 +02:00
2020-04-24 08:01:25 +02:00
2020-04-02 16:34:24 +02:00
2021-05-22 10:57:24 +02:00
2022-02-08 18:16:29 +01:00
2022-08-25 11:11:30 +02:00
2022-08-25 11:11:09 +02:00
2020-12-08 10:17:32 +01:00
2022-09-05 10:25:02 +02:00
2022-06-25 11:46:45 +02:00
2021-02-10 09:12:08 +01:00
2022-03-28 08:22:27 +02:00
2022-06-14 16:53:54 +02:00
2021-04-16 11:57:52 +02:00
2021-12-08 08:46:55 +01:00
2021-04-16 11:57:51 +02:00
2022-09-05 10:25:03 +02:00
2021-09-22 11:45:32 +02:00
2022-05-18 09:18:05 +02:00
2021-07-28 11:12:18 +02:00
2022-06-14 16:53:48 +02:00
2022-04-27 13:15:31 +02:00
2022-04-27 13:15:29 +02:00
2022-01-11 13:57:37 +01:00
2021-03-30 14:40:12 +02:00
2022-08-25 11:11:31 +02:00
2022-09-05 10:25:03 +02:00
2022-06-14 16:53:50 +02:00
2022-09-05 10:25:03 +02:00
2022-06-14 16:53:50 +02:00
2022-05-18 09:18:06 +02:00
2022-08-25 11:11:32 +02:00
2022-07-21 20:42:46 +02:00
2022-01-27 09:01:00 +01:00
2022-08-25 11:11:33 +02:00
2022-03-23 09:01:34 +01:00
2022-04-20 09:08:21 +02:00
2022-09-05 10:25:02 +02:00
2021-06-30 08:48:47 -04:00
2021-08-04 12:22:14 +02:00
2022-09-05 10:25:04 +02:00