Bluetooth: Use GFP_KERNEL in sco_conn_add
This patch changes the memory allocation flags in the sco_conn_add function, replacing the type to GFP_KERNEL. This function is executed in process context and it is not called inside an atomic section. Signed-off-by: Claudio Takahasi <claudio.takahasi@openbossa.org> Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
This commit is contained in:
parent
ea323c1198
commit
c10cc5a9d4
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ static struct sco_conn *sco_conn_add(struct hci_conn *hcon)
|
||||||
if (conn)
|
if (conn)
|
||||||
return conn;
|
return conn;
|
||||||
|
|
||||||
conn = kzalloc(sizeof(struct sco_conn), GFP_ATOMIC);
|
conn = kzalloc(sizeof(struct sco_conn), GFP_KERNEL);
|
||||||
if (!conn)
|
if (!conn)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue