]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm/nommu.c: add additional check for vread() just like vwrite() has done
authorChen Gang <gang.chen@asianux.com>
Wed, 19 Jun 2013 00:06:12 +0000 (10:06 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 19 Jun 2013 07:13:08 +0000 (17:13 +1000)
commita51f7235ac6e18f665bf93a45a5cfb5becf7d4a9
tree38bb873731495ee6e5f7e0fb061d2d8a883b5ed2
parentad30068ea3800acb2fee9ca50bc63359fd1c8fbc
mm/nommu.c: add additional check for vread() just like vwrite() has done

vwrite() checks for overflow. vread() should do the same thing.

Since vwrite() checks the source buffer address, vread() should check
the destination buffer address.

Signed-off-by: Chen Gang <gang.chen@asianux.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Michel Lespinasse <walken@google.com>
Cc: Rik van Riel <riel@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/nommu.c