saveenv: Properly detect write errors
The return value check of the write call is completely bogus. We
check if we have written at minimum sizeof(struct envfs_super) bytes
instead of all bytes. Properly check for all bytes written instead
and allow write to write less bytes than requested.
Do not use write_full because this file is compiled for userspace
aswell.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 8d0b6dd commit aa49d86b2d80687c36897c3b9f91954d8f1ec9b0
@Sascha Hauer Sascha Hauer authored on 8 Apr 2014
Showing 1 changed file
View
common/environment.c