aboutsummaryrefslogtreecommitdiff
path: root/scripts/basic/docproc.c
diff options
context:
space:
mode:
authorRusty Russell <[email protected]>2010-08-11 23:04:10 -0600
committerRusty Russell <[email protected]>2010-08-11 23:04:11 +0930
commit2e9fb9953df91ef6310da22182ca8f4496907502 (patch)
tree096a7b4c2cff57e6fb520f1abdc740260c57471f /scripts/basic/docproc.c
parentd2800800d795350435936b08afb402ed9aab1e66 (diff)
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 <[email protected]> Cc: Dongdong Deng <[email protected]> Cc: Américo Wang <[email protected]>
Diffstat (limited to 'scripts/basic/docproc.c')
0 files changed, 0 insertions, 0 deletions