From: Jeff Dike Date: Fri, 30 Jun 2006 08:55:54 +0000 (-0700) Subject: [PATCH] uml: fix /proc/mounts parsing boundary condition X-Git-Tag: v2.6.18-rc1~291 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c2b7a4bb30008dc256d63802e02b6fb950958443;p=pandora-kernel.git [PATCH] uml: fix /proc/mounts parsing boundary condition When parsing /proc/mounts looking for a tmpfs mount on /dev/shm, if a string that we are looking for if split across reads, then it won't be recognized. Fix this by refilling the buffer whenever we advance the cursor. Signed-off-by: Jeff Dike Cc: Paolo 'Blaisorblade' Giarrusso Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed