Skip to content

Commit 4b3812d

Browse files
committed
Revert "ptp: Fixes a null pointer dereference in ptp_ioctl"
This reverts commit 8a4f030. 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: 8a4f030 ("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>
1 parent c0a2a1b commit 4b3812d

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

drivers/ptp/ptp_chardev.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,6 @@ long ptp_ioctl(struct posix_clock_context *pccontext, unsigned int cmd,
176176
int enable, err = 0;
177177

178178
tsevq = pccontext->private_clkdata;
179-
if (!tsevq)
180-
return -EINVAL;
181179

182180
switch (cmd) {
183181

0 commit comments

Comments
 (0)