Commit 8d42877
committed
fs: only copy to userspace on success in listmount()
Avoid copying when we failed to, or didn't have any mounts to list.
Fixes: cb54ef4 ("fs: don't copy to userspace under namespace semaphore") # mainline only
Signed-off-by: Christian Brauner <[email protected]>1 parent 682d121 commit 8d42877
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5401 | 5401 | | |
5402 | 5402 | | |
5403 | 5403 | | |
| 5404 | + | |
| 5405 | + | |
5404 | 5406 | | |
5405 | 5407 | | |
5406 | 5408 | | |
| |||
0 commit comments