Re: [PATCH v2] imsm: introduce helpers to manage file descriptors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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





[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux