diff options
| author | Dan Carpenter <dan.carpenter@oracle.com> | 2013-12-05 17:53:50 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-05-13 14:11:32 +0200 |
| commit | 9a9269138723e71e87f4adb00c0c2bbdc7bdcd0b (patch) | |
| tree | 0319b0e0bd2bfa6f0fa4750f627195acadb54f86 /include/linux/freezer.h | |
| parent | c3a47361053bdd9059eec78510de21684f4112c5 (diff) | |
mtd: sm_ftl: heap corruption in sm_create_sysfs_attributes()
commit b4c233057771581698a13694ab6f33b48ce837dc upstream.
We always put a NUL terminator one space past the end of the "vendor"
buffer. Walter Harms also pointed out that this should just use
kstrndup().
Fixes: 7d17c02a01a1 ('mtd: Add new SmartMedia/xD FTL')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/freezer.h')
0 files changed, 0 insertions, 0 deletions
