mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 20:33:58 -04:00
Merge "ubi: Use UBI_MAX_VOLUME_NAME for printing ubi volume names"
This commit is contained in:
commit
bb300e0c64
1 changed files with 1 additions and 1 deletions
|
|
@ -86,7 +86,7 @@ static ssize_t vol_attribute_show(struct device *dev,
|
|||
}
|
||||
ret = scnprintf(buf, size, "%s\n", tp);
|
||||
} else if (attr == &attr_vol_name)
|
||||
ret = scnprintf(buf, vol->name_len + 1, "%s\n",
|
||||
ret = scnprintf(buf, UBI_MAX_VOLUME_NAME + 1, "%s\n",
|
||||
vol->name);
|
||||
else if (attr == &attr_vol_corrupted)
|
||||
ret = scnprintf(buf, sizeof(int), "%d\n",
|
||||
|
|
|
|||
Loading…
Reference in a new issue