projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
block: fix buffer overflow when printing partition UUIDs
[GitHub/mt8127/android_kernel_alcatel_ttab.git]
/
include
/
linux
/
genhd.h
diff --git
a/include/linux/genhd.h
b/include/linux/genhd.h
index e61d3192448e90f2942a32a048ddd10d812d855e..017a7fb5a1fcb7ea3a2e9e5e3d2116be6bf26922 100644
(file)
--- a/
include/linux/genhd.h
+++ b/
include/linux/genhd.h
@@
-222,12
+222,6
@@
static inline void part_pack_uuid(const u8 *uuid_str, u8 *to)
}
}
-static inline char *part_unpack_uuid(const u8 *uuid, char *out)
-{
- sprintf(out, "%pU", uuid);
- return out;
-}
-
static inline int disk_max_parts(struct gendisk *disk)
{
if (disk->flags & GENHD_FL_EXT_DEVT)