Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

do_readlinkat(): switch to CLASS(filename_flags)

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

Al Viro d4ffeabe 97ed55d2

+2 -6
+2 -6
fs/stat.c
··· 564 564 char __user *buf, int bufsiz) 565 565 { 566 566 struct path path; 567 - struct filename *name; 568 567 int error; 569 568 unsigned int lookup_flags = 0; 570 569 571 570 if (bufsiz <= 0) 572 571 return -EINVAL; 573 572 574 - name = getname_flags(pathname, LOOKUP_EMPTY); 573 + CLASS(filename_flags, name)(pathname, LOOKUP_EMPTY); 575 574 retry: 576 575 error = filename_lookup(dfd, name, lookup_flags, &path, NULL); 577 - if (unlikely(error)) { 578 - putname(name); 576 + if (unlikely(error)) 579 577 return error; 580 - } 581 578 582 579 /* 583 580 * AFS mountpoints allow readlink(2) but are not symlinks ··· 594 597 lookup_flags |= LOOKUP_REVAL; 595 598 goto retry; 596 599 } 597 - putname(name); 598 600 return error; 599 601 } 600 602