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
2015-11-09 17:11:57 -08:00
2015-11-12 07:06:18 -05:00
2015-11-12 07:06:18 -05:00
2016-01-07 15:51:13 -08:00
2015-11-12 07:06:18 -05:00
2015-11-13 20:35:54 -08:00
2015-11-13 20:35:54 -08:00
2015-04-27 10:10:19 -07:00
2015-04-27 10:04:39 -07:00
2015-04-27 10:04:39 -07:00
2015-04-27 10:05:55 -07:00
2015-11-09 17:11:57 -08:00
2015-12-03 09:32:33 -08:00
2015-04-17 10:13:56 -07:00
2015-11-25 22:08:55 -05:00
2016-01-06 21:43:09 -05:00
2015-07-31 13:31:10 +02:00
2014-07-17 22:07:37 +02:00
2016-01-06 21:43:09 -05:00
2015-11-09 17:11:57 -08:00
2014-11-24 16:13:16 +01:00
2015-11-09 16:32:14 -08:00
2016-01-06 21:43:13 -05:00
2016-01-06 21:43:13 -05:00
2013-04-09 14:13:16 -04:00
2013-04-09 14:13:16 -04: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
2015-06-02 17:24:54 -07:00
2013-04-09 14:13:27 -04:00
2016-01-06 21:43:09 -05:00
2013-04-09 14:13:15 -04:00
2014-07-17 22:07:35 +02:00
2014-11-24 20:01:28 +01:00
2016-01-06 21:43:09 -05:00
2015-11-12 07:06:18 -05:00
2016-01-07 15:51:13 -08:00
2015-09-02 12:22:54 -07:00
2015-11-30 11:23:45 -05:00
2014-07-17 22:07:39 +02:00
2016-01-26 17:24:16 -08:00
2014-11-12 11:15:57 +01:00
2015-12-03 09:32:33 -08:00
2015-11-18 11:59:09 -05:00
2015-11-09 17:42:19 -08:00
2014-11-20 09:11:15 +01:00
2016-01-06 21:43:09 -05:00
2015-07-23 13:07:04 -07:00
2013-04-09 14:13:15 -04:00