From: Dan Rosenberg Date: Wed, 15 Sep 2010 11:43:28 +0000 (+0000) Subject: drivers/net/usb/hso.c: prevent reading uninitialized memory X-Git-Tag: v2.6.36-rc5~12^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7011e660938fc44ed86319c18a5954e95a82ab3e;p=pandora-kernel.git drivers/net/usb/hso.c: prevent reading uninitialized memory Fixed formatting (tabs and line breaks). The TIOCGICOUNT device ioctl allows unprivileged users to read uninitialized stack memory, because the "reserved" member of the serial_icounter_struct struct declared on the stack in hso_get_count() is not altered or zeroed before being copied back to the user. This patch takes care of it. Signed-off-by: Dan Rosenberg Signed-off-by: David S. Miller --- Reading git-diff-tree failed