]> code.ossystems Code Review - openembedded-core.git/commit
linux-yocto/4.1: hid-core: Avoid uninitialized buffer access
authorBruce Ashfield <bruce.ashfield@windriver.com>
Mon, 21 Sep 2015 13:14:58 +0000 (09:14 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 21 Sep 2015 13:20:16 +0000 (14:20 +0100)
commit1c6c1af385a481b0a57ab06cd40af56be3425cc8
treec6de51bdef27fc0437173b3d579b80d02acf8d5e
parent440ad49e53359ea800c179df105ab885873d7691
linux-yocto/4.1: hid-core: Avoid uninitialized buffer access

Updating the 4.1 SRCREVs to integrate the following commit:

    hid-core: Avoid uninitialized buffer access

    hid_connect adds various strings to the buffer but they're all
    conditional. You can find circumstances where nothing would be
    written
    to it but the kernel will still print the supposedly empty buffer
    with
    printk. This leads to corruption on the console/in the logs.

    Ensure buf is initialized to an empty string.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
    [dvhart: Initialize string to "" rather than assign buf[0] = NULL;]
Cc: Jiri Kosina <jikos@kernel.org>
Cc: linux-input@vger.kernel.org
Cc: stable@vger.kernel.org
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-kernel/linux/linux-yocto-rt_4.1.bb
meta/recipes-kernel/linux/linux-yocto-tiny_4.1.bb
meta/recipes-kernel/linux/linux-yocto_4.1.bb