locking: fix handling of passed in locks
commite5af1ca733e87328bb9860bb23d6bf63ed2434ec
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 10 May 2021 12:43:26 +0000 (10 15:43 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Mon, 10 May 2021 12:43:26 +0000 (10 15:43 +0300)
tree775a00b92eeb8b8ccff18fa9a05efc02914ca050
parentaf9d4b054c92df7c0dc826ffb00ebce9b6072639
locking: fix handling of passed in locks

Most locks are in the form "&foo->bar" but this code which tracks which
locks that the caller is holding doesn't work when the lock starts with
a '&' character.

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