alpha: Prevent a NULL ptr dereference in csum_partial_copy.
authorJay Estabrook <jay.estabrook@gmail.com>
Sun, 17 Nov 2013 00:45:31 +0000 (16:45 -0800)
committerMatt Turner <mattst88@gmail.com>
Sun, 17 Nov 2013 00:48:42 +0000 (16:48 -0800)
commit5cfe8f1ba5eebe6f4b6e5858cdb1a5be4f3272a6
treefd5784acb203c3243c033d9fe6504792d7f1fd0b
parent6e22f8f2e8d81dcab4c40bc229d53388fda63dbc
alpha: Prevent a NULL ptr dereference in csum_partial_copy.

Introduced by 3ddc5b46a8e90f3c92 ("kernel-wide: fix missing validations
on __get/__put/__copy_to/__copy_from_user()").

Also fix some other places which could be problematic in a similar way,
although they hadn't been proved so, as far as I can tell.

Cc: Michael Cree <mcree@orcon.net.nz>
Signed-off-by: Matt Turner <mattst88@gmail.com>
arch/alpha/lib/csum_partial_copy.c