• Varun Wadekar's avatar
    Tegra: spe: uninit console on a timeout · 8a47fe43
    Varun Wadekar authored
    
    
    There are chances a denial-of-service attack, if an attacker
    removes the SPE firmware from the system. The console driver
    would end up waiting for the firmware to respond indefinitely.
    The console driver must detect such scenarios and uninit the
    interface as a result.
    
    This patch adds a timeout to the interaction with the SPE
    firmware and uninits the interface if it times out.
    
    Change-Id: I06f27a858baed25711d41105b4110865f1a01727
    Signed-off-by: default avatarVarun Wadekar <vwadekar@nvidia.com>
    8a47fe43
shared_console.S 5.35 KB