rosenberg: fix some false positives
commitaaa751ff52fe4944033182ad2876effd7c674937
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 22 May 2014 09:32:45 +0000 (22 12:32 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Thu, 22 May 2014 09:32:45 +0000 (22 12:32 +0300)
tree9e576990eee5b2ef3dffb5dc240fbb3d849f60cd
parent5ea7e2e665d452850aaa427bc18b501285025486
rosenberg: fix some false positives

We used to only care about "copy_to_user(dest, &foo, sizeof(foo))" where
foo was declared on the stack.  Then I made the code more flexible so I
could check some other types of copying beside copy_to_user().  But in the
process I made this bit too flexible and it causes about 5 false positives.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
check_rosenberg.c