[PATCH] ncpfs: ensure we free wdog_pid on parse_option or fill_inode failure
authorEric W. Biederman <ebiederm@xmission.com>
Wed, 13 Dec 2006 08:35:13 +0000 (00:35 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Wed, 13 Dec 2006 17:05:53 +0000 (09:05 -0800)
commit1de241268d7b6bea05d64f9269bf9aa90be49ff1
treec50ef7b5a4480cac82f92c4131d0c7357a86c15b
parent2154227a2c6cf04e28576b59c684123eb0e81958
[PATCH] ncpfs: ensure we free wdog_pid on parse_option or fill_inode failure

This took a little refactoring but now errors are handled cleanly.  When
this code used pid_t values this wasn't necessary because you can't
leak a pid_t.

Thanks to Peter Vandrovec for spotting this.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Cc: Peter Vandrovec <vandrove@vc.cvut.cz>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/ncpfs/inode.c