logfs: Prevent memory corruption
authorJoern Engel <joern@logfs.org>
Sun, 20 Nov 2011 16:59:01 +0000 (22:29 +0530)
committerPrasad Joshi <prasadjoshi.linux@gmail.com>
Sat, 28 Jan 2012 05:54:21 +0000 (11:24 +0530)
commit934eed395d201bf0901ca0c0cc3703b18729d0ce
tree27847639b14a0fc16b850bd39c0ace939694d8f2
parent96150606e2fb82d242c9e4a414e4e922849f7bf7
logfs: Prevent memory corruption

This is a bad one.  I wonder whether we were so far protected by
no_free_segments(sb) usually being smaller than LOGFS_NO_AREAS.

Found by Dan Carpenter <dan.carpenter@oracle.com> using smatch.

Signed-off-by: Joern Engel <joern@logfs.org>
Signed-off-by: Prasad Joshi <prasadjoshi.linux@gmail.com>
fs/logfs/gc.c