lkml.org 
[lkml]   [2019]   [Jul]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[BUG] infiniband: mlx5: a possible null-pointer dereference in set_roce_addr()
Date
In set_roce_addr(), there is an if statement on line 589 to check 
whether gid is NULL:
    if (gid)

When gid is NULL, it is used on line 613:
    return mlx5_core_roce_gid_set(..., gid->raw, ...);

Thus, a possible null-pointer dereference may occur.

This bug is found by a static analysis tool STCheck written by us.

I do not know how to correctly fix this bug, so I only report it.


Best wishes,
Jia-Ju Bai

\
 
 \ /
  Last update: 2019-07-29 04:22    [W:0.159 / U:0.192 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site