diff options
author | Dan Carpenter <error27@gmail.com> | 2010-04-23 21:18:10 +0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-04-24 22:31:26 +0400 |
commit | 22eccdd7d2d94be48ae9b01fef5f52ccbb81dcd5 (patch) | |
tree | 346ba02239f0d3a1ed5d1d09fc3d323c29202270 /init/do_mounts_md.c | |
parent | 453dc65931915abc61f92e12bba1fc4747ff5542 (diff) | |
download | linux-22eccdd7d2d94be48ae9b01fef5f52ccbb81dcd5.tar.xz |
ksm: check for ERR_PTR from follow_page()
The follow_page() function can potentially return -EFAULT so I added
checks for this.
Also I silenced an uninitialized variable warning on my version of gcc
(version 4.3.2).
Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-by: Rik van Riel <riel@redhat.com>
Acked-by: Izik Eidus <ieidus@redhat.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'init/do_mounts_md.c')
0 files changed, 0 insertions, 0 deletions