Skip to content
Commit b714ca2c authored by Edward Adam Davis's avatar Edward Adam Davis Committed by Jakub Kicinski
Browse files

ptp: ptp_read should not release queue



Firstly, queue is not the memory allocated in ptp_read;
Secondly, other processes may block at ptp_read and wait for conditions to be
met to perform read operations.

Acked-by: default avatarRichard Cochran <richardcochran@gmail.com>
Reported-and-tested-by: default avatar <syzbot+df3f3ef31f60781fa911@syzkaller.appspotmail.com>
Fixes: 8f5de6fb

 ("ptp: support multiple timestamp event readers")
Signed-off-by: default avatarEdward Adam Davis <eadavis@qq.com>
Link: https://lore.kernel.org/r/tencent_18747D76F1675A3C633772960237544AAA09@qq.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 9b818a34
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