WSL2-Linux-Kernel/drivers/gpu/drm/ast
Russell Currey 298360af3d drivers/gpu/drm/ast: Fix infinite loop if read fails
ast_get_dram_info() configures a window in order to access BMC memory.
A BMC register can be configured to disallow this, and if so, causes
an infinite loop in the ast driver which renders the system unusable.

Fix this by erroring out if an error is detected.  On powerpc systems with
EEH, this leads to the device being fenced and the system continuing to
operate.

Cc: <stable@vger.kernel.org> # 3.10+
Signed-off-by: Russell Currey <ruscur@russell.cc>
Reviewed-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20161215051241.20815-1-ruscur@russell.cc
2016-12-18 14:39:50 +01:00
..
Kconfig drm/ast: make fbdev support really optional 2016-07-18 09:11:41 +02:00
Makefile drm/ast: initial DP501 support (v0.2) 2014-05-19 11:13:57 +10:00
ast_dp501.c drm/ast: Cleanup analog init code path 2014-09-15 11:37:46 +10:00
ast_dram_tables.h drm: Initial KMS driver for AST (ASpeed Technologies) 2000 series (v2) 2012-05-17 10:53:37 +01:00
ast_drv.c drm: define drm_compat_ioctl NULL on CONFIG_COMPAT=n and reduce #ifdefs 2016-11-02 11:33:47 -04:00
ast_drv.h drm/ttm: remove use_ticket parameter from ttm_bo_reserve 2016-05-04 20:21:21 -04:00
ast_fb.c drm/ast: free correct pointer in astfb_create() error paths 2016-11-14 07:45:16 +01:00
ast_main.c drivers/gpu/drm/ast: Fix infinite loop if read fails 2016-12-18 14:39:50 +01:00
ast_mode.c drm: Make the connector .detect() callback optional 2016-12-01 10:05:53 -05:00
ast_post.c drm/ast: POST chip at probe time if VGA not enabled 2014-09-15 11:37:44 +10:00
ast_tables.h drm/ast: Add reduced blanking modes for wide screen mode 2014-09-16 14:57:47 +10:00
ast_ttm.c Linux 4.9-rc4 2016-11-07 09:37:09 +10:00