param_mapper: initial commit
commitb154c5a3ec77250fe9c52afd7565b4c16b5a3e0a
authorDan Carpenter <error27@gmail.com>
Wed, 30 Dec 2009 11:34:59 +0000 (30 13:34 +0200)
committerDan Carpenter <error27@gmail.com>
Wed, 30 Dec 2009 11:34:59 +0000 (30 13:34 +0200)
treeae30c5f20736ed402d6d7be75552886bed23c836
parent7a34efff0cfbeffe36df521248fe3e3a1ee08b3c
param_mapper: initial commit

If you are hunting down places that pass stack variables to
usb_control_msg() then one thing you find is that there are tons
of helper functions you have to look for as well.

For example usb_get_descriptor() parameter 3 is passed to usb_control_msg()

This check helps you find those:
grep param_mapper warns.txt | grep "usb_control_msg 6$" \
| cut -d ' ' -f 3,6 | sed -e 's/(.*)//' | uniq
Add the output to your check script.

Signed-off-by: Dan Carpenter <error27@gmail.com>
check_param_mapper.c [new file with mode: 0644]
smatch.c