Patch "bnxt_en: allocate enough space for ->ntp_fltr_bmap" has been added to the 4.4-stable tree
This is a note to let you know that I've just added the patch titled
bnxt_en: allocate enough space for ->ntp_fltr_bmap
to the 4.4-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
bnxt_en-allocate-enough-space-for-ntp_fltr_bmap.patch
and it can be found in the queue-4.4 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From foo@baz Thu May 11 12:38:23 CEST 2017
From: Dan Carpenter <[email protected]>
Date: Sat, 6 May 2017 03:49:01 +0300
Subject: bnxt_en: allocate enough space for ->ntp_fltr_bmap
From: Dan Carpenter <[email protected]>
[ Upstream commit ac45bd93a5035c2f39c9862b8b6ed692db0fdc87 ]
We have the number of longs, but we need to calculate the number of bytes required.
--- drivers/net/ethernet/broadcom/bnxt/bnxt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/ethernet/broadcom/bnxt/bnxt.c +2 -1
@@ -2473,7 +2473,8 @@ static int bnxt_alloc_ntp_fltrs(struct bINIT_HLIST_HEAD (&bp->ntp_fltr_hash_tbl[i]); bp->ntp_fltr_count =0 ; - bp->ntp_fltr_bmap =kzalloc (BITS_TO_LONGS (BNXT_NTP_FLTR_MAX_FLTR ), + bp->ntp_fltr_bmap =kcalloc (BITS_TO_LONGS (BNXT_NTP_FLTR_MAX_FLTR ), +sizeof (long ),GFP_KERNEL );if (!bp->ntp_fltr_bmap)
Patches currently in stable-queue which might be from [email protected] are
queue-4.4/scsi-scsi_dh_emc-return-success-in-clariion_std_inquiry.patch queue-4.4/bnxt_en-allocate-enough-space-for-ntp_fltr_bmap.patch