mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-12-29 09:16:33 +00:00
Revert "ptp: Fixes a null pointer dereference in ptp_ioctl"
This reverts commit8a4f030dbc
. Richard says: The test itself is harmless, but keeping it will make people think, "oh this pointer can be invalid." In fact the core stack ensures that ioctl() can't be invoked after release(), otherwise Bad Stuff happens. Fixes:8a4f030dbc
("ptp: Fixes a null pointer dereference in ptp_ioctl") Link: https://lore.kernel.org/all/ZVAf_qdRfDAQYUt-@hoboy.vegasvil.org/ Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
c0a2a1b0d6
commit
4b3812d90b
@ -176,8 +176,6 @@ long ptp_ioctl(struct posix_clock_context *pccontext, unsigned int cmd,
|
||||
int enable, err = 0;
|
||||
|
||||
tsevq = pccontext->private_clkdata;
|
||||
if (!tsevq)
|
||||
return -EINVAL;
|
||||
|
||||
switch (cmd) {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user