Drop reference to export key on error. Compile tested.
Signed-off-by: Krishna Kumar <krkumar2@in.ibm.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
/* now we want a pathname, or empty meaning NEGATIVE */
err = -EINVAL;
/* now we want a pathname, or empty meaning NEGATIVE */
err = -EINVAL;
- if ((len=qword_get(&mesg, buf, PAGE_SIZE)) < 0)
+ if ((len=qword_get(&mesg, buf, PAGE_SIZE)) < 0) {
+ cache_put(&ek->h, &svc_expkey_cache);
dprintk("Path seems to be <%s>\n", buf);
err = 0;
if (len == 0) {
dprintk("Path seems to be <%s>\n", buf);
err = 0;
if (len == 0) {
} else {
struct nameidata nd;
err = path_lookup(buf, 0, &nd);
} else {
struct nameidata nd;
err = path_lookup(buf, 0, &nd);
+ if (err) {
+ cache_put(&ek->h, &svc_expkey_cache);
dprintk("Found the path %s\n", buf);
key.ek_path = nd.path;
dprintk("Found the path %s\n", buf);
key.ek_path = nd.path;