]> git.baikalelectronics.ru Git - kernel.git/commit
net: fix sock_timestamping_bind_phc() to release device
authorMiroslav Lichvar <mlichvar@redhat.com>
Tue, 11 Jan 2022 15:10:53 +0000 (16:10 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 Jan 2022 14:16:15 +0000 (14:16 +0000)
commit90dc641a36a8643bbb5cfe5c627d4ac2f780364c
tree529a98fbe5568ff77c801492ecb35e58b1d6731e
parentf4bf9a565a5df66f07acb6ee4551c9dbca968f29
net: fix sock_timestamping_bind_phc() to release device

Don't forget to release the device in sock_timestamping_bind_phc() after
it was used to get the vclock indices.

Fixes: a46ab78897d0 ("net: sock: extend SO_TIMESTAMPING for PHC binding")
Signed-off-by: Miroslav Lichvar <mlichvar@redhat.com>
Cc: Yangbo Lu <yangbo.lu@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/sock.c