Print this page
10102 libnvfru needs smatch fixes

*** 21,30 **** --- 21,32 ---- /* * Copyright (c) 2014 Gary Mills * * Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved. + * + * Copyright (c) 2018, Joyent, Inc. */ #include <stdio.h> #include <stdlib.h> #include <stdint.h>
*** 400,410 **** return (-1); } err = convert_fru(hdl, nvlist); ! fru_close_data_source(); (void) pthread_mutex_unlock(&gLock); return (err); } --- 402,412 ---- return (-1); } err = convert_fru(hdl, nvlist); ! (void) fru_close_data_source(); (void) pthread_mutex_unlock(&gLock); return (err); }