[Bluetooth] Remaining transitions to use kzalloc()
This patch makes the remaining transitions to use kzalloc(). Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
This commit is contained in:
committed by
David S. Miller
parent
c2ce920468
commit
25ea6db04a
@ -335,10 +335,9 @@ int cmtp_add_connection(struct cmtp_connadd_req *req, struct socket *sock)
|
||||
baswap(&src, &bt_sk(sock->sk)->src);
|
||||
baswap(&dst, &bt_sk(sock->sk)->dst);
|
||||
|
||||
session = kmalloc(sizeof(struct cmtp_session), GFP_KERNEL);
|
||||
session = kzalloc(sizeof(struct cmtp_session), GFP_KERNEL);
|
||||
if (!session)
|
||||
return -ENOMEM;
|
||||
memset(session, 0, sizeof(struct cmtp_session));
|
||||
|
||||
down_write(&cmtp_session_sem);
|
||||
|
||||
|
Reference in New Issue
Block a user