[NET]: sockfd_lookup_light() returns random error for -EBADFD
authorHua Zhong <hzhong@gmail.com>
Wed, 19 Apr 2006 22:25:02 +0000 (15:25 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Apr 2006 22:25:02 +0000 (15:25 -0700)
commit3672558c6180ca28a7aa46765702467a37e58fc5
tree1529de37f6139fff32de963423178c42ec6c1629
parent52824b6b5fa0533e2b2adc9df396d0e9ff6fb02a
[NET]: sockfd_lookup_light() returns random error for -EBADFD

This applies to 2.6.17-rc2.

There is a missing initialization of err in sockfd_lookup_light() that
could return random error for an invalid file handle.

Signed-off-by: Hua Zhong <hzhong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/socket.c