]> git.karo-electronics.de Git - karo-tx-linux.git/commit
logfs: check for the return value after calling find_or_create_page()
authorYounger Liu <liuyiyang@hisense.com>
Mon, 16 Dec 2013 23:45:21 +0000 (10:45 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 16 Dec 2013 23:45:21 +0000 (10:45 +1100)
commita16b8a4bbed46a080660df3cca99fff27aa15cd6
treedee167eca7a099facfbfe0885bb2991a993d154b
parent23257dd84921aa6e53a73a3e51d7784bc17900dc
logfs: check for the return value after calling find_or_create_page()

In get_mapping_page(), after calling find_or_create_page(), the return
value should be checked.

 This patch has been provided:
http://www.spinics.net/lists/linux-fsdevel/msg66948.html but not been
applied now.

Signed-off-by: Younger Liu <liuyiyang@hisense.com>
Cc: Younger Liu <younger.liucn@gmail.com>
Cc: Vyacheslav Dubeyko <slava@dubeyko.com>
Reviewed-by: Prasad Joshi <prasadjoshi.linux@gmail.com>
Cc: Jörn Engel <joern@logfs.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/logfs/segment.c