This patch can't make any difference that I can see.
At the point where you clear the f_dentry, the whole file pointer is
completely local to the open routine (it hasn't been installed anywhere),
so nobody else can have a pointer to it. As such, nobody else could
dereference the field except for us (and we won't do that, because we're
just about to destroy it).
It would indeed be a major bug to expose the file pointer before it is
completely filled in, but that is regardless of whether we have a stale
dentry pointer or any dentry at all..
Linus
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html