diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2018-01-09 23:03:46 +0300 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2018-01-10 16:48:09 -0500 |
commit | 57194fa763bfa1a0908f30d4c77835beaa118fcb (patch) | |
tree | 5c5adaa5b07c08e423a32d8d1d1f1f270c16b89a /arch/alpha/lib/ev6-memset.S | |
parent | cd52cb26e7ead5093635e98e07e221e4df482d34 (diff) | |
download | linux-57194fa763bfa1a0908f30d4c77835beaa118fcb.tar.gz linux-57194fa763bfa1a0908f30d4c77835beaa118fcb.tar.xz |
IB/hfi1: Prevent a NULL dereference
In the original code, we set "fd->uctxt" to NULL and then dereference it
which will cause an Oops.
Fixes: f2a3bc00a03c ("IB/hfi1: Protect context array set/clear with spinlock")
Cc: <stable@vger.kernel.org> # 4.14.x
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Michael J. Ruhl <michael.j.ruhl@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'arch/alpha/lib/ev6-memset.S')
0 files changed, 0 insertions, 0 deletions