]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ptp: use kcalloc when allocating arrays
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 14 Feb 2017 18:23:32 +0000 (10:23 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 17 Feb 2017 16:03:06 +0000 (11:03 -0500)
commit6f7aa56bae6ff38727d5c8bf6ee7d4202b4e3865
tree14f800474cdfab3fa80eedb0462d84a52e82b08c
parent882f312dc0751c973db26478f07f082c584d16aa
ptp: use kcalloc when allocating arrays

kcalloc is more semantically correct when allocating arrays of objects, and
overflow-safe.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/ptp/ptp_sysfs.c