https://github.com/torvalds/linux
Revision d9bf5f130946695063469749bfd190087b7fad39 authored by Weiping Pan on 13 August 2013, 13:46:56 UTC, committed by David S. Miller on 14 August 2013, 02:29:08 UTC
Since we set "len = total_len" in the beginning of tun_get_user(),
so we should compare the new len with 0, instead of total_len,
or the if statement always returns false.

Signed-off-by: Weiping Pan <wpan@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 3e805ad
History
Tip revision: d9bf5f130946695063469749bfd190087b7fad39 authored by Weiping Pan on 13 August 2013, 13:46:56 UTC
tun: compare with 0 instead of total_len
Tip revision: d9bf5f1
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 1.1 KB
.mailmap -rw-r--r-- 4.4 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 93.1 KB
Kbuild -rw-r--r-- 2.5 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 253.7 KB
Makefile -rw-r--r-- 47.4 KB
README -rw-r--r-- 18.3 KB
REPORTING-BUGS -rw-r--r-- 7.3 KB

README

back to top