ptp: ptp_read should not release queue
Subsystems (3)
PATCH v8 1/2 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.
Reported-and-tested-by [email protected]
Fixes 8f5de6fb2453 ("ptp: support multiple timestamp event readers")
Signed-off-by Edward Adam Davis <[email protected]>
--- drivers/ptp/ptp_chardev.c | 2 -- 1 file changed, 2 deletions(-)
drivers/ptp/ptp_chardev.c +0 -2
@@ -588,7 +588,5 @@ ssize_t ptp_read(struct posix_clock_context *pccontext, uint rdflags, free_event:kfree (event); exit: -if (result <0 ) -ptp_release (pccontext);return result; }
Signature · 1 line
2.25.1
Quoted 7 lines · Edward Adam Davis
Firstly, queue is not the memory allocated in
ptp_read;
Secondly, other processes may block atptp_readand wait for conditions to be met to perform read operations.Reported-and-tested-by [email protected]Fixes 8f5de6fb2453 ("ptp: support multiple timestamp event readers")Signed-off-by Edward Adam Davis <[email protected]>
(This should go to net and not net-next.)
Acked-by Richard Cochran <[email protected]>