summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorRusty Russell2010-08-12 07:04:10 +0200
committerRusty Russell2010-08-11 15:34:11 +0200
commit2e9fb9953df91ef6310da22182ca8f4496907502 (patch)
tree096a7b4c2cff57e6fb520f1abdc740260c57471f /fs
parentdocumentation: fix erroneous email address. (diff)
downloadkernel-qcow2-linux-2e9fb9953df91ef6310da22182ca8f4496907502.tar.gz
kernel-qcow2-linux-2e9fb9953df91ef6310da22182ca8f4496907502.tar.xz
kernel-qcow2-linux-2e9fb9953df91ef6310da22182ca8f4496907502.zip
params: don't hand NULL values to param.set callbacks.
An audit by Dongdong Deng revealed that most driver-author-written param calls don't handle val == NULL (which happens when parameters are specified with no =, eg "foo" instead of "foo=1"). The only real case to use this is boolean, so handle it specially for that case and remove a source of bugs for everyone else. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Cc: Dongdong Deng <dongdong.deng@windriver.com> Cc: Américo Wang <xiyou.wangcong@gmail.com>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions