commit | 1b9bf629ea42fdacd951b9190f86b028557bbe19 | [log] [tgz] |
---|---|---|
author | Julian Andres Klode <jak@jak-linux.org> | Tue Sep 27 19:00:55 2011 +0200 |
committer | Greg Kroah-Hartman <gregkh@suse.de> | Thu Sep 29 17:41:35 2011 -0700 |
tree | fa1dc52c588a7f910ec052583f4328f0cd517b32 | |
parent | ff169c1487381aa522b92b9f0c87bd92577bfc80 [diff] |
staging: nvec: Have nvec_write_async() return -ENOMEM on OOM Change nvec_write_async() to return an integer, 0 by default, a negative error on failure. Change nvec_write_sync() to check the return value and abort if it is negative. Signed-off-by: Julian Andres Klode <jak@jak-linux.org> Acked-by: Marc Dietrich <marvin24@gmx.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>