]> git.baikalelectronics.ru Git - kernel.git/commit
misc/93xx46: avoid infinite loop on write()
authorVladimir Zapolskiy <vladimir_zapolskiy@mentor.com>
Mon, 28 Oct 2013 17:05:16 +0000 (19:05 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Oct 2013 23:24:33 +0000 (16:24 -0700)
commit78a5dcde6118f8b4ae0553db1572e287d8722090
tree3365a712921f2610c7f5ac21d4c4545f5d8dd058
parentc123107a2bef1afa157f08816c44ae513c74e512
misc/93xx46: avoid infinite loop on write()

This change fixes a problem of infinite zero byte write() without
an error status, if there is an attempt to write a file bigger than
EEPROM size over sysfs interface.

Signed-off-by: Vladimir Zapolskiy <vladimir_zapolskiy@mentor.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/eeprom/eeprom_93xx46.c