aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorMichal Suchanek <hramrach@gmail.com>2016-05-05 17:31:54 -0700
committerBrian Norris <computersforpeace@gmail.com>2016-06-01 17:22:57 -0700
commite5d05cbd6d8b01f08c95c427a36c66aac769af4f (patch)
tree1f7a9f10bbbf61fc2c6d64adddc0a12072e31bae /tools/perf/scripts/python/export-to-postgresql.py
parentmtd: spi-nor: stop passing around retlen (diff)
downloadlinux-dev-e5d05cbd6d8b01f08c95c427a36c66aac769af4f.tar.xz
linux-dev-e5d05cbd6d8b01f08c95c427a36c66aac769af4f.zip
mtd: spi-nor: simplify write loop
The spi-nor write loop assumes that what is passed to the hardware driver write() is what gets written. When write() writes less than page size at once data is dropped on the floor. Check the amount of data writen and exit if it does not match requested amount. Signed-off-by: Michal Suchanek <hramrach@gmail.com> Signed-off-by: Brian Norris <computersforpeace@gmail.com> Tested-by Cyrille Pitchen <cyrille.pitchen@atmel.com> Acked-by: Michal Suchanek <hramrach@gmail.com> Tested-by: Michal Suchanek <hramrach@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions