param: initialize store function to NULL if not available.
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 23 Dec 2014 04:35:36 +0000 (15:05 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 23 Dec 2014 04:37:41 +0000 (15:07 +1030)
I rebased Kees' 'param: do not set store func without write perm'
on top of my 'params: cleanup sysfs allocation'.  However, my patch
uses krealloc which doesn't zero memory, leaving .store unset.

Reported-by: Sasha Levin <sasha.levin@oracle.com>
Cc: Kees Cook <keescook@chromium.org>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
kernel/params.c

diff --cc kernel/params.c
Simple merge