Re: [PATCH] target:tcmu:add '\n' when return user space

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

 



On 03/10/2019 09:07 AM, tangwenji wrote:
> From: tangwenji <tang.wenji@xxxxxxxxxx>
> 
> In function tcmu_get_global_max_data_area return string should include '\n'.
> 
> Signed-off-by: tangwenji <tang.wenji@xxxxxxxxxx>
> ---
>  drivers/target/target_core_user.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/target/target_core_user.c b/drivers/target/target_core_user.c
> index 5831e0e..50229c1 100644
> --- a/drivers/target/target_core_user.c
> +++ b/drivers/target/target_core_user.c
> @@ -244,7 +244,7 @@ static int tcmu_set_global_max_data_area(const char *str,
>  static int tcmu_get_global_max_data_area(char *buffer,
>  					 const struct kernel_param *kp)
>  {
> -	return sprintf(buffer, "%d", TCMU_BLOCKS_TO_MBS(tcmu_global_max_blocks));
> +	return sprintf(buffer, "%d\n", TCMU_BLOCKS_TO_MBS(tcmu_global_max_blocks));
>  }
>  
>  static const struct kernel_param_ops tcmu_global_max_data_area_op = {
> 

Acked-by: Mike Christie <mchristi@xxxxxxxxxx>



[Index of Archives]     [Linux SCSI]     [Kernel Newbies]     [Linux SCSI Target Infrastructure]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Device Mapper]

  Powered by Linux