From: H Hartley Sweeten Date: Mon, 20 Apr 2015 18:49:04 +0000 (-0700) Subject: staging: comedi: comedi_bond: fix 'b_mask' calc in bonding_dio_insn_bits() X-Git-Tag: omap-for-v4.2/fixes-rc1^2~92^2~964 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b3ab6fbfd8625232c54d70e29f7274118726ba45;p=pandora-kernel.git staging: comedi: comedi_bond: fix 'b_mask' calc in bonding_dio_insn_bits() 'b_chans' may be a valud up to 32. 'b_mask' is an unsigned int and a left shift of more than 31 bits has undefined behavior. Fix the calc so it works correctly with a 'b_chans' of 32.. Reported-by: coverity (CID 1192244) Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed