summaryrefslogtreecommitdiff
path: root/rust/zerocopy/src/pointer/git@git.tavy.me:linux-stable.git
diff options
context:
space:
mode:
authorMaxime Bélair <maxime.belair@canonical.com>2026-02-11 14:19:32 +0100
committerJohn Johansen <john.johansen@canonical.com>2026-06-13 20:14:06 -0700
commit1c8a839442823ce5c627d645730d8c61d828aafa (patch)
tree34156567dd06ca8a1fc64647b5fa0f69acfcb0a7 /rust/zerocopy/src/pointer/git@git.tavy.me:linux-stable.git
parente7501736405a39fa513625ba1f81909c847e4e70 (diff)
apparmor: propagate -ENOMEM correctly in unpack_table
Currently, if the `kvzalloc` in `unpack_table` fails, it returns NULL. This is masked by `aa_dfa_unpack` which interprets NULL as a -EPROTO, leading to confusing error messages in `apparmor_parser` [1]. The fixed behavior correctly propagates -ENOMEM on allocation failure. Link: https://gitlab.com/apparmor/apparmor/-/issues/592 Reviewed-by: Georgia Garcia <georgia.garcia@canonical.com> Signed-off-by: Maxime Bélair <maxime.belair@canonical.com> Signed-off-by: John Johansen <john.johansen@canonical.com>
Diffstat (limited to 'rust/zerocopy/src/pointer/git@git.tavy.me:linux-stable.git')
0 files changed, 0 insertions, 0 deletions