X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=fs%2Fopen.c;h=5a2c6ebc22b5d9a1e355050cb14d3218f7a9d0d3;hb=e58713724059da7d2982d6ad945192c8fca5b729;hp=e52389e1f05b4c010b49ef9a6e4d8cb11bfac504;hpb=4fda116852fe21a3897c478ce64b77bb1ec6b3d6;p=mv-sheeva.git diff --git a/fs/open.c b/fs/open.c index e52389e1f05..5a2c6ebc22b 100644 --- a/fs/open.c +++ b/fs/open.c @@ -790,6 +790,8 @@ struct file *nameidata_to_filp(struct nameidata *nd) /* Pick up the filp from the open intent */ filp = nd->intent.open.file; + nd->intent.open.file = NULL; + /* Has the filesystem initialised the file for us? */ if (filp->f_path.dentry == NULL) { path_get(&nd->path);