btrfs: use umove_or_printaddr_ignore_syserror instead of u_error mangling
* btrfs.c (MPERS_PRINTER_DECL(btrfs_ioctl)) <case BTRFS_IOC_TREE_SEARCH_V2>: Use umove_or_printaddr_ignore_syserror instead of tcp->u_error mangling around umove_or_printaddr call.
This commit is contained in:
parent
68869ae825
commit
7db513885a
5
btrfs.c
5
btrfs.c
@ -1181,11 +1181,10 @@ MPERS_PRINTER_DECL(int, btrfs_ioctl,
|
||||
else if (syserror(tcp)) {
|
||||
if (tcp->u_error == EOVERFLOW) {
|
||||
tprints(" => ");
|
||||
tcp->u_error = 0;
|
||||
if (!umove_or_printaddr(tcp, arg, &args))
|
||||
if (!umove_or_printaddr_ignore_syserror(tcp,
|
||||
arg, &args))
|
||||
tprintf("{buf_size=%" PRIu64 "}",
|
||||
(uint64_t)args.buf_size);
|
||||
tcp->u_error = EOVERFLOW;
|
||||
}
|
||||
break;
|
||||
} else
|
||||
|
Loading…
Reference in New Issue
Block a user