commit | 3324fb405340cf52fe361697a86d235587402d9c | [log] [tgz] |
---|---|---|
author | Bill Pemberton <wfp5p@virginia.edu> | Wed May 05 15:27:49 2010 -0400 |
committer | Greg Kroah-Hartman <gregkh@suse.de> | Tue May 11 11:36:14 2010 -0700 |
tree | 5b8ab85cdfb894a8e4ce4352f82260cf7b77f87b | |
parent | 1bbdd7a5380239533c4bb648c5d5d9510f12974b [diff] |
staging: hv: check return value of RingBufferInit() RingBufferInit() would always return sucess and instead relied on an ASSERT() to test for an error condition. Remove the ASSERT() and return -EINVAL instead. The return value of RingBufferInit() was also never checked, so check it. Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Cc: Hank Janssen <hjanssen@microsoft.com> Cc: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>