• Dave Jones's avatar
    [PATCH] Sysfs not handling show errors · 5141a806
    Dave Jones authored
    Originally by Rusty Lynch, munged by me, acked
    by Mochel.
    
     Attempting to cat a sysfs file that returns an error will result in an
     endless dump of garbage to the screen because the result of the specific
     show operation was being saved to a size_t (unsigned) and then later
     checked for a negative value.
    5141a806
file.c 10.3 KB