missinglinkelectronics / libuio

UserspaceIO helper library
GNU Lesser General Public License v2.1
30 stars 28 forks source link

'errno' not reset prior to create_uio_info() #11

Open bear101 opened 6 years ago

bear101 commented 6 years ago

https://github.com/Linutronix/libuio/blob/ca28ff0f69d89a789a47552c72db5a43d280710b/base.c#L288

If 'errno' is already active when calling uio_find_by_uio_num() then libuio will think it's an error caused by libuio itself. Why not check for NULL instead of 'errno'?