apparmor: fix error handling for copy_from_user in policy_update

copy_from_user does not return an error code and the check should be
setting the error code.

Fixes: 8b236f99edf8 ("apparmor: Initial support for compressed policies")
Signed-off-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
John Johansen 2026-07-01 05:54:20 -07:00
commit 1bc94d09e1