kdbus: remove set_fs() calls 33/283433/1
authorMarek Szyprowski <m.szyprowski@samsung.com>
Wed, 26 Oct 2022 11:37:30 +0000 (13:37 +0200)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Wed, 26 Oct 2022 11:47:44 +0000 (13:47 +0200)
commitfc2e08ac39f7ea438aaa3ca5fa4416eed2ace412
treee90836ad96c7c3f74088ad670c34bc13c0122248
parent825a25ce348644290643fd5ddc8f852f308fe7c7
kdbus: remove set_fs() calls

The iov_iter based calls seems to already handle the kernel memory as
source or destination, when iov_iter is created from iov_iter_kvec(),
so there is no need to use the set_fs()-based API to let the called
functions access userspace. Those set_fs() calls were there from the
beginning of the merged kdbus code. They might be an artifact left from
kdbus v2 (where they seems to be really needed) to v3 (which use the
iov_iter and kvec API) update:
https://lore.kernel.org/all/1421435777-25306-5-git-send-email-gregkh@linuxfoundation.org/
https://lore.kernel.org/all/1416546149-24799-5-git-send-email-gregkh@linuxfoundation.org/

Change-Id: I25fe3066f073677a00f719af13e9c2ced5b89a47
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
kernel/kdbus/pool.c