From: Oliver Hartkopp Date: Wed, 11 Aug 2010 23:12:35 +0000 (-0700) Subject: can: add limit for nframes and clean up signed/unsigned variables X-Git-Tag: v2.6.27.53~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa184a2b0bd3c74ba099853ed39b11acdc109d8f;p=pandora-kernel.git can: add limit for nframes and clean up signed/unsigned variables commit 5b75c4973ce779520b9d1e392483207d6f842cde upstream. This patch adds a limit for nframes as the number of frames in TX_SETUP and RX_SETUP are derived from a single byte multiplex value by default. Use-cases that would require to send/filter more than 256 CAN frames should be implemented in userspace for complexity reasons anyway. Additionally the assignments of unsigned values from userspace to signed values in kernelspace and vice versa are fixed by using unsigned values in kernelspace consistently. Signed-off-by: Oliver Hartkopp Reported-by: Ben Hawkes Acked-by: Urs Thuermann Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed