AFS: Don't pass error value to page_cache_release() in error handling
authorDavid Howells <dhowells@redhat.com>
Wed, 21 Apr 2010 11:01:23 +0000 (12:01 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 21 Apr 2010 19:27:43 +0000 (12:27 -0700)
In the error handling in afs_mntpt_do_automount(), we pass an error
pointer to page_cache_release() if read_mapping_page() failed.  Instead,
we should extend the gotos around the error handling we don't need.

Reported-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

No differences found