From df8df8527b0e2446efbb8aa1a442c808ea93cd09 Mon Sep 17 00:00:00 2001 From: Adrian Reber Date: Mon, 28 Sep 2020 10:40:27 +0000 Subject: [PATCH] sk-netlink: Argument cannot be negative (NEGATIVE_RETURNS) CID 73378 (#1 of 1): Argument cannot be negative (NEGATIVE_RETURNS) sk is passed to a parameter that cannot be negative. Signed-off-by: Adrian Reber --- criu/sk-netlink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/criu/sk-netlink.c b/criu/sk-netlink.c index c5ff38d328..3b86a7d7bf 100644 --- a/criu/sk-netlink.c +++ b/criu/sk-netlink.c @@ -209,7 +209,7 @@ static int open_netlink_sk(struct file_desc *d, int *new_fd) sk = socket(PF_NETLINK, SOCK_RAW, nse->protocol); if (sk < 0) { pr_perror("Can't create netlink sock"); - goto err; + return -1; } if (nse->portid) {