net: clear heap allocation for ethtool_get_regs()
There is a conflict between commit b00916b1 and a77f5db3. This patch resolves the conflict by clearing the heap allocation in ethtool_get_regs().
net/core/ethtool.c +1 -1
@@ -817,7 +817,7 @@ static int ethtool_get_regs(struct net_device *dev, char __user *useraddr)if (regs.len > reglen) regs.len = reglen; - regbuf =vmalloc (reglen); + regbuf =vzalloc (reglen);if (!regbuf)return -ENOMEM ;
From: Eugene Teo <[email protected]>
Date: Tue, 25 Jan 2011 12:49:10 +0800
Quoted 5 lines
There is a conflict between commit
b00916b1anda77f5db3. This patch resolves the conflict by clearing the heap allocation inethtool_get_regs().Signed-off-by Eugene Teo <[email protected]>
Applied, thanks Eugene.
David Miller
maintainerFrom: David Miller <[email protected]>
Date: Mon, 24 Jan 2011 21:05:43 -0800 (PST)
Quoted 10 lines
From: Eugene Teo <[email protected]>
Date: Tue, 25 Jan 2011 12:49:10 +0800Quoted 5 lines
There is a conflict between commit
b00916b1anda77f5db3. This patch resolves the conflict by clearing the heap allocation inethtool_get_regs().Signed-off-by Eugene Teo <[email protected]>Applied, thanks Eugene.
Ugh, I just noticed, Eugene could you please always CC: netdev on networking patches? Thanks.
Quoted 9 lines · David Miller
From: David Miller <[email protected]>
Date: Mon, 24 Jan 2011 21:05:43 -0800 (PST)Quoted 6 lines
From: Eugene Teo <[email protected]>
Date: Tue, 25 Jan 2011 12:49:10 +0800Quoted 3 lines
There is a conflict between commit
b00916b1anda77f5db3. This patch resolves the conflict by clearing the heap allocation inethtool_get_regs().
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
Signed-off-by Eugene Teo <[email protected]>Applied, thanks Eugene.
Ugh, I just noticed, Eugene could you please always CC: netdev on networking patches? Thanks.
Will do that. Thanks Dave.
Eugene
Hi Eugene,
Quoted 2 lines · Eugene Teo
There is a conflict between commit
b00916b1anda77f5db3. This patch resolves the conflict by clearing the heap allocation inethtool_get_regs().
Good catch! Thanks!
-Kees
Signature · 2 lines
Kees Cook Ubuntu Security Team