33 ** OO_Copyright_BEGIN
44 **
55 **
6- ** Copyright 2010, 2020 IBM Corp. All rights reserved.
6+ ** Copyright 2010, 2025 IBM Corp. All rights reserved.
77 **
88 ** Redistribution and use in source and binary forms, with or without
99 ** modification, are permitted provided that the following conditions
@@ -1742,7 +1742,7 @@ ssize_t _unified_insert_new_request(const char *buf, off_t offset, size_t count,
17421742{
17431743 int ret ;
17441744 struct dentry_priv * dpr = d -> iosched_priv ;
1745- struct write_request * new_req ;
1745+ struct write_request * new_req = NULL ;
17461746 size_t copy_count ;
17471747
17481748 if (! (* cache )) {
@@ -1764,7 +1764,7 @@ ssize_t _unified_insert_new_request(const char *buf, off_t offset, size_t count,
17641764 memcpy (cache_manager_get_object_data (* cache ), buf , copy_count );
17651765
17661766 /* Store new write request */
1767- new_req = calloc (1 , sizeof (struct write_request ));
1767+ new_req = ( struct write_request * ) calloc (1 , sizeof (struct write_request ));
17681768 if (! new_req ) {
17691769 ltfsmsg (LTFS_ERR , 13018E );
17701770 _unified_cache_free (* cache , 0 , priv );
@@ -2307,7 +2307,7 @@ int unified_set_profiler(char *work_dir, bool enable, void *iosched_handle)
23072307{
23082308 int rc = 0 ;
23092309 char * path ;
2310- FILE * p ;
2310+ FILE * p = NULL ;
23112311 struct timer_info timerinfo ;
23122312 struct unified_data * priv = iosched_handle ;
23132313
@@ -2325,7 +2325,7 @@ int unified_set_profiler(char *work_dir, bool enable, void *iosched_handle)
23252325 return - LTFS_NO_MEMORY ;
23262326 }
23272327
2328- p = fopen (path , PROFILER_FILE_MODE );
2328+ arch_fopen (path , PROFILER_FILE_MODE , p );
23292329
23302330 free (path );
23312331
0 commit comments