coda: do not grab an uninitialized fd when the open upcall returns an error
authorJan Harkes <jaharkes@cs.cmu.edu>
Thu, 19 Jul 2007 08:48:41 +0000 (01:48 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 19 Jul 2007 17:04:48 +0000 (10:04 -0700)
commit38c2e4370da495813ca93d7cad31ed5090e8c310
treebf48c4a17f3f2f7cf17a20e37f55f898a332a2c7
parent18991197b4b588255ccabf472ebc84db7b66a19c
coda: do not grab an uninitialized fd when the open upcall returns an error

When open fails the fd in the response is uninitialized and we ended up taking
a reference on the file struct and never released it.

Signed-off-by: Jan Harkes <jaharkes@cs.cmu.edu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/coda/file.c
fs/coda/psdev.c
fs/coda/upcall.c