]> git.hungrycats.org Git - linux/commit
[PATCH] ethtool_get_regs copy right number of bytes to user
authorChris Wright <chrisw@osdl.org>
Sun, 1 Aug 2004 10:57:26 +0000 (06:57 -0400)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sun, 1 Aug 2004 10:57:26 +0000 (06:57 -0400)
commitff2923acc600730c2d3145bcd43f188c6ea5baf3
treeb3c63f8673ab4b9f5fa68caafe977a5e76c18824
parentf9c235e6701d01908384bb1f0ba9b537557835f2
[PATCH] ethtool_get_regs copy right number of bytes to user

If regs.len is smaller than reglen it's possible to copy more bytes out
than the user asked for.

Signed-off-by: Chris Wright <chrisw@osdl.org>
net/core/ethtool.c