summaryrefslogtreecommitdiff
path: root/lib/atomic64.c
diff options
context:
space:
mode:
authorJeremy Kerr <jeremy.kerr@canonical.com>2012-10-19 07:16:45 (GMT)
committerMatt Fleming <matt.fleming@intel.com>2012-10-30 10:39:25 (GMT)
commit310ad75448329f167af3c4a10e4a9de4d80058ff (patch)
tree1ef1debdf5b974b35e2c06d77f9ad4dd6ecdee1c /lib/atomic64.c
parentf5f6a60ad52fc786c517303590f1efaea614c69b (diff)
downloadlinux-fsl-qoriq-310ad75448329f167af3c4a10e4a9de4d80058ff.tar.xz
efi: Clarify GUID length calculations
At present, the handling of GUIDs in efivar file names isn't consistent. We use GUID_LEN in some places, and 38 in others (GUID_LEN plus separator), and implicitly use the presence of the trailing NUL. This change removes the trailing NUL from GUID_LEN, so that we're explicitly adding it when required. We also replace magic numbers with GUID_LEN, and clarify the comments where appropriate. We also fix the allocation size in efivar_create_sysfs_entry, where we're allocating one byte too much, due to counting the trailing NUL twice - once when calculating short_name_size, and once in the kzalloc. Signed-off-by: Jeremy Kerr <jeremy.kerr@canonical.com> Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Diffstat (limited to 'lib/atomic64.c')
0 files changed, 0 insertions, 0 deletions