From: Christian Engelmayer Date: Wed, 7 May 2014 19:45:52 +0000 (+0200) Subject: staging: comedi: ii_pci20kc: fix usage of uninit scalar in ii20k_attach() X-Git-Tag: omap-for-v3.16/fixes-against-rc1~39^2~36^2~453 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=27a2234edd4a5c8b0ebdaaa3f6a5f00183f3154f;p=pandora-kernel.git staging: comedi: ii_pci20kc: fix usage of uninit scalar in ii20k_attach() This driver supports the PCI-20001C-1a and PCI-20001C-2a carrier boards. The -2a version has 32 on-board DIO channels. In case this variant is detected, local variable 'has_dio' is set accordingly. Otherwise it is left uninitialized and the following subdevice instantiation depends on the stack. Detected by Coverity - CID 1077830. Signed-off-by: Christian Engelmayer Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed