Commit 6a038a1e authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

sk-packet: print an error if lookup failed

Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent f9b3dd7a
......@@ -152,8 +152,10 @@ static int dump_one_packet_fd(int lfd, u32 id, const struct fd_parms *p)
int i, ret;
sd = (struct packet_sock_desc *)lookup_socket(p->stat.st_ino, PF_PACKET);
if (sd == NULL)
if (sd == NULL) {
pr_err("Can't find packet socket %lu\n", p->stat.st_ino);
return -1;
}
pr_info("Dumping packet socket fd %d id %#x\n", lfd, id);
BUG_ON(sd->sd.already_dumped);
......
Markdown is supported
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