From: Rusty Russell Date: Thu, 12 Aug 2010 05:04:10 +0000 (-0600) Subject: params: don't hand NULL values to param.set callbacks. X-Git-Tag: v2.6.36-rc1~57^2~20 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e9fb9953df91ef6310da22182ca8f4496907502;p=pandora-kernel.git 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 Cc: Dongdong Deng Cc: Américo Wang --- Reading git-diff-tree failed