]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
bnxt_en: allocate enough space for ->ntp_fltr_bmap
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 6 May 2017 00:49:01 +0000 (03:49 +0300)
committerSeth Forshee <seth.forshee@canonical.com>
Mon, 15 May 2017 20:39:25 +0000 (15:39 -0500)
commit8e62a3525abe34cc59590424e1fca5df7d46abe2
treec4e1fac59e3f30045e07bad36af04cbca600642c
parent4d3a93655ab9bdced951969a070b767c6be411a3
bnxt_en: allocate enough space for ->ntp_fltr_bmap

BugLink: http://bugs.launchpad.net/bugs/1690814
[ Upstream commit ac45bd93a5035c2f39c9862b8b6ed692db0fdc87 ]

We have the number of longs, but we need to calculate the number of
bytes required.

Fixes: c0c050c58d84 ("bnxt_en: New Broadcom ethernet driver.")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/net/ethernet/broadcom/bnxt/bnxt.c