]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
net: ena: change sizeof() argument to be the type pointer
authorNetanel Belgazal <netanel@amazon.com>
Fri, 23 Jun 2017 08:21:52 +0000 (11:21 +0300)
committerKamal Mostafa <kamal@canonical.com>
Mon, 10 Jul 2017 17:31:40 +0000 (10:31 -0700)
commit11b9fe04cdba433bb708470feccb9594d668c451
treeb6cf5c6e7172e326c999dd3a9639232f41b64716
parentbca37ffdfe57ecf4ec2f3c030f341b0be000e895
net: ena: change sizeof() argument to be the type pointer

BugLink: http://bugs.launchpad.net/bugs/1701575
Instead of using:
memset(ptr, 0x0, sizeof(struct ...))
use:
memset(ptr, 0x0, sizeor(*ptr))

Signed-off-by: Netanel Belgazal <netanel@amazon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 917501109cf4ea4c47991f593111338811369bf5 net-next)
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Acked-by: Seth Forshee <seth.forshee@canonical.com>
Acked-by: Brad Figg <brad.figg@canonical.com>
drivers/net/ethernet/amazon/ena/ena_com.c