commit | f403f85f5334fb169d5c00deac106f140b62d3c9 | [log] [tgz] |
---|---|---|
author | Anton Vasilyev <vasilyev@ispras.ru> | Tue Aug 01 16:25:59 2017 +0300 |
committer | Jiri Kosina <jkosina@suse.cz> | Thu Oct 12 15:37:19 2017 +0200 |
tree | 15600778f839c182c1dfd8bd4fa37f7cf0ff2d5b | |
parent | df47b246ed176b504b1d50ad63aa5a3bf7551f82 [diff] |
misc: ibmasm: Return error on error path If ibmasm_event_buffer_init() or ibmasm_heartbeat_init() fails, then ibmasm_init_one() release all resources and return 0 on error path. The patch adds corresponding error for fails. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Anton Vasilyev <vasilyev@ispras.ru> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>