Skip to content

Commit

Permalink
sk-netlink: Argument cannot be negative (NEGATIVE_RETURNS)
Browse files Browse the repository at this point in the history
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 <areber@redhat.com>
  • Loading branch information
adrianreber authored and avagin committed Oct 20, 2020
1 parent 4e42278 commit f0e48be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion criu/sk-netlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit f0e48be

Please sign in to comment.