android_kernel_lge_bullhead/net/bluetooth
Behan Webster 1c5c2b8fee Bluetooth: LLVMLinux: Remove VLAIS from bluetooth/amp.c
Replaced the use of a Variable Length Array In Struct (VLAIS) with a C99
compliant equivalent. This patch allocates the appropriate amount of memory
using an char array.

The new code can be compiled with both gcc and clang.

struct shash_desc contains a flexible array member member ctx declared with
CRYPTO_MINALIGN_ATTR, so sizeof(struct shash_desc) aligns the beginning
of the array declared after struct shash_desc with long long.

No trailing padding is required because it is not a struct type that can
be used in an array.

The CRYPTO_MINALIGN_ATTR is required so that desc is aligned with long long
as would be the case for a struct containing a member with
CRYPTO_MINALIGN_ATTR.

Signed-off-by: Behan Webster <behanw@converseincode.com>
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
Signed-off-by: Jan-Simon Möller <dl9pf@gmx.de>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Change-Id: I542f014c591583a5216f5fc5ec6eef0577587af9
2019-08-26 17:34:10 +02:00
..
bnep Bluetooth: bnep: bnep_add_connection() should verify that it's dealing with l2cap socket 2017-10-12 19:42:27 -07:00
cmtp Bluetooth: cmtp: cmtp_add_connection() should verify that it's dealing with l2cap socket 2017-10-12 19:42:30 -07:00
hidp Android 8.1.0 Release 0.62 2018-06-04 15:05:19 -07:00
rfcomm This is the 3.10.67 stable release 2015-05-01 13:34:57 -07:00
Kconfig Bluetooth: trivial: Remove newline before EOF 2012-10-24 00:42:47 -02:00
Makefile Bluetooth: AMP: Use HCI cmd to Read Loc AMP Assoc 2012-09-27 17:10:32 -03:00
a2mp.c Bluetooth: Replaced kzalloc and memcpy with kmemdup 2013-03-18 14:01:50 -03:00
af_bluetooth.c Merge upstream linux-stable v3.10.28 into msm-3.10 2014-03-24 14:28:34 -07:00
amp.c Bluetooth: LLVMLinux: Remove VLAIS from bluetooth/amp.c 2019-08-26 17:34:10 +02:00
hci_conn.c bluetooth: Notify connection deletion only for SCO/ESCO links. 2014-12-04 10:04:45 +05:30
hci_core.c Bluetooth: change cancel_delayed_work to cancel_delayed_work_sync 2015-01-28 13:01:02 +05:30
hci_event.c Bluetooth: Avoid Spurious AMP node access if not created 2015-01-23 11:03:58 +05:30
hci_sock.c net: rework recvmsg handler msg_name and msg_namelen logic 2013-12-08 07:29:25 -08:00
hci_sysfs.c Bluetooth: Track feature pages in a single table 2013-04-18 00:26:20 -03:00
l2cap_core.c Bluetooth: Fix crash in l2cap_chan_send after l2cap_chan_del 2015-01-27 11:03:27 +05:30
l2cap_sock.c Bluetooth: Fix l2cap_sock_setsockopt() with optname BT_RCVMTU 2016-08-27 11:40:36 +02:00
lib.c bluetooth: Remove unneeded batostr function 2012-09-27 18:10:43 -03:00
mgmt.c Merge upstream tag 'v3.10.49' into msm-3.10 2014-08-20 13:23:09 -07:00
sco.c This is the 3.10.95 stable release 2018-01-25 17:04:28 -07:00
smp.c BLUETOOTH: Add NULL Check for pointer 2014-08-29 14:07:59 -07:00