OSDN Git Service

packet: fix race condition in packet_set_ring
authorSrinivasa Rao Kuppala <srkupp@codeaurora.org>
Wed, 30 Nov 2016 22:55:36 +0000 (14:55 -0800)
committerSrinivasa Rao Kuppala <srkupp@codeaurora.org>
Wed, 13 Jun 2018 05:40:43 +0000 (11:10 +0530)
commite51372325864feeed93cabaf483a5ae689382071
tree04059b39baf7d1bf6ce14f6af479e1ad07a00b5a
parent5cb5749cd7fc25ad09fce7ce083aeb38e2a42fe5
packet: fix race condition in packet_set_ring

commit 5a01eaf19858 ("packet: fix race condition
in packet_set_ring") was incorrectly resolved.
Add the missing lock_sock(sk) and release_sock(sk) calls.

Change-Id: I6565bf3e3c6a15d6f1b93cab0536424dbacb187b
Signed-off-by: Srinivasa Rao Kuppala <srkupp@codeaurora.org>
net/packet/af_packet.c