Wolf480pl on Nostr: nprofile1q…wtjjy Piggo :verified_horse: hmm but for that to trigger, someone would ...
nprofile1qy2hwumn8ghj7un9d3shjtnddaehgu3wwp6kyqpqsld6cd53kj8pkz9svnnt54um57nvwrlx9sgya7xhvhl5a5a4f3sqmwtjjy (nprofile…tjjy) Piggo :verified_horse: (nprofile…q955)
hmm but for that to trigger, someone would actually have to call that function (faux_device_destroy) with a null argument, right?
And the function's doc comment doesn't say it's ok to call it with a null...
but then if the null check was only defensive coding and not sth that's supposed to be reachable, shouldn't there be a BUG_ON / WARN_ON ?
https://lore.kernel.org/all/2025021026-atlantic-gibberish-3f0c@gregkh/
hmm but for that to trigger, someone would actually have to call that function (faux_device_destroy) with a null argument, right?
And the function's doc comment doesn't say it's ok to call it with a null...
but then if the null check was only defensive coding and not sth that's supposed to be reachable, shouldn't there be a BUG_ON / WARN_ON ?
https://lore.kernel.org/all/2025021026-atlantic-gibberish-3f0c@gregkh/