On 10/19/21 6:07 AM, Mariusz Tkaczyk wrote: > To avoid direct comparisions define dedicated inlines. > This patch propagates them in super-intel.c. They are declared globally > for future usage outside IMSM. > > Additionally, it adds fd check in save_backup_imsm() to remove > code vulnerability and simplifies targets array implementation. > > It also propagates pr_vrb() macro instead if (verbose) condidtion. > > Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@xxxxxxxxxxxxxxx> > --- > Changes: > - Fixed bug reported by Jes > - changed close_fd to do_close in __free_imsm_disk() > > mdadm.h | 25 ++++++++ > super-intel.c | 167 +++++++++++++++++++++++--------------------------- > 2 files changed, 100 insertions(+), 92 deletions(-) Applied! Thanks, Jes