]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: Comment copy_from_sockptr() explaining its behaviour
authorMichal Luczaj <mhal@rbox.co>
Tue, 19 Nov 2024 13:31:43 +0000 (14:31 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 28 Nov 2024 07:57:42 +0000 (08:57 +0100)
commit49b2b973325add467270e906d4d794aa6679b38b
tree60dc45d6d52ff90178d5b51b5824531dd454d011
parent02020056647017e70509bb58c3096448117099e1
net: Comment copy_from_sockptr() explaining its behaviour

copy_from_sockptr() has a history of misuse. Add a comment explaining that
the function follows API of copy_from_user(), i.e. returns 0 for success,
or number of bytes not copied on error.

Signed-off-by: Michal Luczaj <mhal@rbox.co>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
include/linux/sockptr.h