diff options
| author | Haotian Zhang <vulab@iscas.ac.cn> | 2025-12-03 09:13:47 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-12-18 15:55:14 +0300 |
| commit | 15a6847f280852bb11c4dd9323db3d87fe53d5a4 (patch) | |
| tree | 34f64f9944c0e279f433a498f6fcb45de6320063 /drivers/video/fbdev | |
| parent | 495f3e91557168623053521330e2665ac50e084d (diff) | |
| download | linux-15a6847f280852bb11c4dd9323db3d87fe53d5a4.tar.xz | |
pinctrl: single: Fix incorrect type for error return variable
[ Upstream commit 61d1bb53547d42c6bdaec9da4496beb3a1a05264 ]
pcs_pinconf_get() and pcs_pinconf_set() declare ret as unsigned int,
but assign it the return values of pcs_get_function() that may return
negative error codes. This causes negative error codes to be
converted to large positive values.
Change ret from unsigned int to int in both functions.
Fixes: 9dddb4df90d1 ("pinctrl: single: support generic pinconf")
Signed-off-by: Haotian Zhang <vulab@iscas.ac.cn>
Signed-off-by: Linus Walleij <linusw@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/video/fbdev')
0 files changed, 0 insertions, 0 deletions
