linux-stable/drivers/gpu
Colin Ian King f5b0e63613 drm/nouveau: fix missing break in switch statement
[ Upstream commit 785cf1eeaf ]

The NOUVEAU_GETPARAM_PCI_DEVICE case is missing a break statement and falls
through to the following NOUVEAU_GETPARAM_BUS_TYPE case and may end up
re-assigning the getparam->value to an undesired value. Fix this by adding
in the missing break.

Detected by CoverityScan, CID#1460507 ("Missing break in switch")

Fixes: 359088d5b8 ("drm/nouveau: remove trivial cases of nvxx_device() usage")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-01-27 14:50:26 +01:00
..
drm drm/nouveau: fix missing break in switch statement 2020-01-27 14:50:26 +01:00
host1x gpu: host1x: Allocate gather copy for host1x 2019-12-31 16:35:29 +01:00
ipu-v3 gpu: ipu-v3: pre: don't trigger update if buffer address doesn't change 2019-12-05 09:21:07 +01:00
vga
Makefile