mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-13 07:31:07 +00:00
IB/hfi1: Prevent a NULL dereference
commit57194fa763upstream. In the original code, we set "fd->uctxt" to NULL and then dereference it which will cause an Oops. Fixes:f2a3bc00a0("IB/hfi1: Protect context array set/clear with spinlock") 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
f0299a1cee
commit
b3049d3d06
1 changed files with 2 additions and 2 deletions
Loading…
Add table
Add a link
Reference in a new issue