Gabriel Krisman Bertazi 21b81716c6 ipr: Fix regression when loading firmware
Commit d63c7dd5bcb9 ("ipr: Fix out-of-bounds null overwrite") removed
the end of line handling when storing the update_fw sysfs attribute.
This changed the userpace API because it started refusing writes
terminated by a line feed, which broke the update tools we already have.

This patch re-adds that handling, so both a write terminated by a line
feed or not can make it through with the update.

Fixes: d63c7dd5bcb9 ("ipr: Fix out-of-bounds null overwrite")
Signed-off-by: Gabriel Krisman Bertazi <krisman@linux.vnet.ibm.com>
Cc: Insu Yun <wuninsu@gmail.com>
Acked-by: Brian King <brking@linux.vnet.ibm.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2016-02-26 17:26:02 -05:00
..
2016-01-06 21:43:09 -05:00
2016-01-08 12:51:04 -05:00
2016-01-07 15:51:13 -08:00
2015-11-13 20:35:54 -08:00
2015-11-13 20:35:54 -08:00
2015-12-03 09:32:33 -08:00
2015-11-25 22:08:55 -05:00
2016-01-06 21:43:09 -05:00
2016-01-06 21:43:09 -05:00
2016-01-06 21:43:13 -05:00
2016-01-06 21:43:13 -05:00
2015-12-03 09:32:33 -08:00
2016-01-07 15:51:13 -08:00
2016-01-08 13:08:15 -05:00
2016-01-06 21:43:09 -05:00
2016-01-06 21:43:09 -05:00
2016-01-07 15:51:13 -08:00
2015-11-30 11:23:45 -05:00
2016-01-26 17:24:16 -08:00
2015-12-03 09:32:33 -08:00
2015-11-18 11:59:09 -05:00
2016-01-06 21:43:09 -05:00