• James Nelson's avatar
    [PATCH] lcd: fix memory leak, code cleanup · db43a998
    James Nelson authored
    This patch addresses the following issues:
    
    - Fix log-spamming and cryptic error messages, and add KERN_ constants.
    
    - Convert some ints to unsigned ints.
    
    - Add checks for CAP_SYS_ADMIN for FLASH_Burn and FLASH_Erase ioctls.
    
    - Identify use of global variable.
    
    - Fix memory leak in FLASH_Burn ioctl.
    
    - Fix error return codes in lcd_ioctl().
    
    - Move variable "index" in lcd_ioctl() to smaller scope to reduce memory
      usage.
    
    - Convert cli()/sti() to spin_lock_irqsave()/spin_unlock_irqrestore().
      Fix legibility issues in FLASH_Burn ioctl.
    Signed-off-by: default avatarJames Nelson <james4765@gmail.com>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    db43a998
lcd.h 4.05 KB