aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb
diff options
context:
space:
mode:
authorDavid Howells <[email protected]>2020-06-09 16:15:45 +0100
committerDavid Howells <[email protected]>2020-06-09 17:21:03 +0100
commit9ca0652596bd924a4023db6b429a0aaaea629826 (patch)
treec7a6d63bc4d08641ff1a488f114ea6fc7314f6f8 /scripts/gdb
parent5749ce92c4b707353cbd934dd0518a1966d7988f (diff)
afs: Fix use of BUG()
Fix afs_compare_addrs() to use WARN_ON(1) instead of BUG() and return 1 (ie. srx_a > srx_b). There's no point trying to put actual error handling in as this should not occur unless a new transport address type is allowed by AFS. And even if it does, in this particular case, it'll just never match unknown types of addresses. This BUG() was more of a 'you need to add a case here' indicator. Reported-by: Kees Cook <[email protected]> Signed-off-by: David Howells <[email protected]> Reviewed-by: Kees Cook <[email protected]>
Diffstat (limited to 'scripts/gdb')
0 files changed, 0 insertions, 0 deletions