aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/net/wireguard/socket.c
diff options
context:
space:
mode:
authorAlok Tiwari <alok.a.tiwari@oracle.com>2025-06-15 22:45:01 -0700
committerJakub Kicinski <kuba@kernel.org>2025-06-17 18:02:29 -0700
commitb11344f63fdd9e8c5121148a6965b41079071dd2 (patch)
tree9cdcaa8e0fb8124f101e31de30723f241a935a91 /drivers/net/wireguard/socket.c
parentgve: Fix various typos and improve code comments (diff)
downloadwireguard-linux-b11344f63fdd9e8c5121148a6965b41079071dd2.tar.xz
wireguard-linux-b11344f63fdd9e8c5121148a6965b41079071dd2.zip
gve: Return error for unknown admin queue command
In gve_adminq_issue_cmd(), return -EINVAL instead of 0 when an unknown admin queue command opcode is encountered. This prevents the function from silently succeeding on invalid input and prevents undefined behavior by ensuring the function fails gracefully when an unrecognized opcode is provided. These changes improve error handling. Signed-off-by: Alok Tiwari <alok.a.tiwari@oracle.com> Link: https://patch.msgid.link/20250616054504.1644770-2-alok.a.tiwari@oracle.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/wireguard/socket.c')
0 files changed, 0 insertions, 0 deletions