]> 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>
Thu, 27 Jun 2013 23:51:40 +0000 (09:51 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 28 Jun 2013 06:37:38 +0000 (16:37 +1000)
commit3197f313d44e0a1d8d301bab87857340cac6b1bf
tree8d613a2fff86957882550df3c8fcd00f7f576853
parentc7b37d0434fa6145f03b4f90bb7f0f27fa7f607f
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