summaryrefslogtreecommitdiffstats
path: root/drivers/net/sis190.c
diff options
context:
space:
mode:
authorMariusz Kozlowski <m.kozlowski@tuxland.pl>2009-07-05 21:48:35 +0200
committerDavid S. Miller <davem@davemloft.net>2009-07-06 21:47:07 +0200
commit3c8a9c63d5fd738c261bd0ceece04d9c8357ca13 (patch)
tree7c60ab7e391f73ffcbcb98613ee454f843d7b3d1 /drivers/net/sis190.c
parentdsa: fix 88e6xxx statistics counter snapshotting (diff)
downloadlinux-3c8a9c63d5fd738c261bd0ceece04d9c8357ca13.tar.xz
linux-3c8a9c63d5fd738c261bd0ceece04d9c8357ca13.zip
tun/tap: Fix crashes if open() /dev/net/tun and then poll() it.
Fix NULL pointer dereference in tun_chr_pool() introduced by commit 33dccbb050bbe35b88ca8cf1228dcf3e4d4b3554 ("tun: Limit amount of queued packets per device") and triggered by this code: int fd; struct pollfd pfd; fd = open("/dev/net/tun", O_RDWR); pfd.fd = fd; pfd.events = POLLIN | POLLOUT; poll(&pfd, 1, 0); Reported-by: Eugene Kapun <abacabadabacaba@gmail.com> Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/sis190.c')
0 files changed, 0 insertions, 0 deletions