• Andrew Morton's avatar
    [PATCH] watchdog write() return value fixes · 41339307
    Andrew Morton authored
    From: gleb@nbase.co.il (Gleb Natapov)
    
    There is inconsistency in fops->write() implementation in different
    watchdog drivers.  Some of them return number of bytes written while others
    return 1.
    
    I think the correct implementation should always return number of bytes
    written (we examine all the buffer after all) otherwise "echo V >
    /dev/watchdog" doesn't work as expected (it doesn't stop watchdog).
    41339307
softdog.c 5.39 KB