helper: fix crashing bug in token_to_ul()
commit7276be755778321c2cc31fc381f448e3d3d2c90a
authorDan Carpenter <dan.carpenter@linaro.org>
Thu, 29 Feb 2024 13:53:17 +0000 (29 16:53 +0300)
committerDan Carpenter <dan.carpenter@linaro.org>
Thu, 29 Feb 2024 13:53:17 +0000 (29 16:53 +0300)
tree3428d809273ff132bbf4151cbe5328ad39ce82a3
parentcf67d3fac4b1ed066f2eb891246f6363ef33d512
helper: fix crashing bug in token_to_ul()

The token_to_ul() function is really rubbish...  It basically lets you
parse a define which is a constant but has some parentheses around it.
I'm not sure exactly how parsing constants is supposed to be done.
I'm going to have to figure that out because the new GFP_ defines are
BIT() calls instead of simple constants.

But for now just stop the token_to_ul() function from crashing due to
recursion.

Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
smatch_helper.c