fs: Allow a NULL pos pointer to __kernel_read
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Sat, 3 Oct 2020 02:55:23 +0000 (03:55 +0100)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 15 Oct 2020 18:20:42 +0000 (14:20 -0400)
commit7b84b665c874f60d84547635341e418f20cbbab2
tree68a8569904410301bbeb6567788a2882d144b504
parent4c207ef48269377236cd38979197c5e1631c8c16
fs: Allow a NULL pos pointer to __kernel_read

Match the behaviour of new_sync_read() and __kernel_write().

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/read_write.c