Skip to content
Commit 7f645462 authored by Wei Yongjun's avatar Wei Yongjun Committed by Daniel Borkmann
Browse files

bpf: Fix error return code in map_lookup_and_delete_elem()

Fix to return negative error code -EFAULT from the copy_to_user() error
handling case instead of 0, as done elsewhere in this function.

Fixes: bd513cd0

 ("bpf: add MAP_LOOKUP_AND_DELETE_ELEM syscall")
Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20200430081851.166996-1-weiyongjun1@huawei.com
parent 18f02ad1
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment