Re: [PATCH] btrfs-progs: qgroup: fix qgroup show sort by multi items

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

 



On Thu, Oct 26, 2017 at 04:32:51PM +0800, Lu Fengqi wrote:
> We should not free the string until we don't call strtok any longer.
> 
> If the string is freed in advance, in fact, the second and subsequent
> sort items will be ignored.
> 
> Fixes: 9fcdf8f8945b ("btrfs-progs: don't write to optarg in btrfs_qgroup_parse_sort_string")
> Signed-off-by: Lu Fengqi <lufq.fnst@xxxxxxxxxxxxxx>

Huh, what an old bug, thanks for the fix.
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux