12 Jun, 2016

1 commit

  • tdev->signal is not set NULL after it's freed. This will cause random
    exceptions when the stale pointer is accessed after tdev->signal is
    freed. Also, since tdev->signal allocation is skipped the next time
    it's written, this leads to continuous fault finally leading to the
    total death of the system.

    Fixes: d1c2f87c9a8f ("mailbox: mailbox-test: Prevent memory leak")
    Signed-off-by: Sudeep Holla
    Acked-by: Lee Jones
    Signed-off-by: Jassi Brar

    Sudeep Holla
     

12 Apr, 2016

2 commits


04 Mar, 2016

4 commits


04 Nov, 2015

1 commit


27 Oct, 2015

1 commit


23 Oct, 2015

1 commit

  • Kbuild test robot reported some Sparse warnings to the tune of:

    sparse: incorrect type in argument 6 (different address spaces)
    expected void const *buf
    got void [noderef] *mmio

    This was due to passing variables tagged with the Sparse cookie
    '__iomem' through into memcpy() and print_hex_dump() without
    adequate protection or casting. These issues were fixed in a
    previous patch suppressing the warnings, but the issue is indeed
    still present.

    This patch fixes the warnings in the correct way, i.e. by using
    the purposely authored memcpy_{from,to}io() derivatives in the
    memcpy() case and casting the memory address to (void *) and
    forcing Sparse to ignore to ignore it in the print_hex_dump()
    case [NB: This is also what the memcpy() derivatives do].

    Reported-by: Peter Griffin
    Signed-off-by: Lee Jones
    Signed-off-by: Jassi Brar

    Lee Jones
     

17 Oct, 2015

2 commits