kernel.return_fixes: add mipi_dsi_device_transfer(), timer_delete() and get_device()master
commit375ffc073fe048d190735a8a42b8cfbbeadc8a68
authorDan Carpenter <dan.carpenter@linaro.org>
Mon, 15 Apr 2024 10:43:33 +0000 (15 13:43 +0300)
committerDan Carpenter <dan.carpenter@linaro.org>
Mon, 15 Apr 2024 10:43:33 +0000 (15 13:43 +0300)
tree9c28a68fcba799aa2c85c581afe3ce4bffc6f2c7
parent05d75b87737396a34d34f4ecd05d7bcca9c9c919
kernel.return_fixes: add mipi_dsi_device_transfer(), timer_delete() and get_device()

The interesting function here is get_device().  It returns the parameter
that was passed in but it does some complicated pointer math to get there.

The problem with mipi_dsi_device_transfer() is the typical thing where
it returns an unknown long, but actually it can't return negatives except
error codes or positives above INT_MAX.

For some reason Smatch was parsing timer_delete() as returning zero.  Was
this a fundamental problem or because of the bugs in smatch_implied.c???

Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
smatch_data/db/kernel.return_fixes