diff options
author | Russell Currey <ruscur@russell.cc> | 2016-12-15 16:12:41 +1100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-01-09 08:07:46 +0100 |
commit | 1f9c91a37542b24374c160c0139b8943183124bb (patch) | |
tree | c2fdff624002a09535f5e653b891b492af5f137b /drivers/misc/mei | |
parent | 970dc8cdec9c4c8c91590071123275df2e80d1a2 (diff) |
drivers/gpu/drm/ast: Fix infinite loop if read fails
commit 298360af3dab45659810fdc51aba0c9f4097e4f6 upstream.
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.
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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/mei')
0 files changed, 0 insertions, 0 deletions