aboutsummaryrefslogtreecommitdiff
path: root/scripts/patch-kernel
diff options
context:
space:
mode:
authorDavid Howells <[email protected]>2008-03-19 17:00:50 -0700
committerLinus Torvalds <[email protected]>2008-03-19 18:53:36 -0700
commit4ebf89845bea44a164d1fbb8fa319379ec7132de (patch)
treef5b87ddbf858ee0a1d9f0177a0c058b81f352c45 /scripts/patch-kernel
parentc587f0c0a69227587baaa12e75815b6644457c0a (diff)
ROMFS: Fix up an error in iget removal
Fix up an error in iget removal in which romfs_lookup() making a successful call to romfs_iget() continues through the negative/error handling (previously the successful case jumped around the negative/error handling case): (1) inode is initialised to NULL at the top of the function, eliminating the need for specific negative-inode handling. This means the positive success handling now flows straight through. (2) Rename the labels to be clearer about what they mean. Also make romfs_lookup()'s result variable of type long so as to avoid 32-bit/64-bit conversions with PTR_ERR() and friends. Based upon a report and patch from Adam Richter. Signed-off-by: David Howells <[email protected]> Acked-by: "Adam J. Richter" <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions