]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/tegra: gem: Do not return NULL in tegra_bo_mmap()
authorThierry Reding <treding@nvidia.com>
Tue, 10 Oct 2023 15:26:14 +0000 (17:26 +0200)
committerThierry Reding <treding@nvidia.com>
Wed, 11 Oct 2023 20:52:44 +0000 (22:52 +0200)
commit3f257bc63c0dcf50135971727e10e54f938d7fd7
tree2de291719595ae8219323da0df5bde11e1039ed9
parent3868ff006b572cf501a3327832d36c64a9eca86a
drm/tegra: gem: Do not return NULL in tegra_bo_mmap()

It's confusing for a function to return NULL and ERR_PTR()-encoded error
codes on failure. Make sure we only ever return the latter since that's
what callers already expect.

Reported-by: Sui Jingfeng <suijingfeng@loongson.cn>
Reviewed-by: Sui Jingfeng <suijingfeng@loongson.cn>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://patchwork.freedesktop.org/patch/msgid/ZSVuVcqdGfGtQIQj@orome.fritz.box
drivers/gpu/drm/tegra/gem.c