lkml.org 
[lkml]   [2019]   [Feb]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Date
    SubjectRe: [PATCH] ASoC: samsung: i2s: Prevent potential NULL platform data dereference
    On Thu, 14 Feb 2019 at 16:58, Sylwester Nawrocki <s.nawrocki@samsung.com> wrote:
    >
    > When np is NULL i2s_pdata could also be NULL but i2s_pdata is now being
    > dereferenced without proper check. Fix this and shorten the error message
    > so we don't exceed 80 characters limit.
    >
    > Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
    > Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
    > ---
    > sound/soc/samsung/i2s.c | 27 +++++++++++++++------------
    > 1 file changed, 15 insertions(+), 12 deletions(-)

    Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>

    Best regards,
    Krzysztof

    \
     
     \ /
      Last update: 2019-02-18 09:26    [W:5.353 / U:0.608 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site