summaryrefslogtreecommitdiffstats
path: root/drivers/staging/rdma/hfi1/chip.c
diff options
context:
space:
mode:
authorSebastian Sanchez2015-12-10 22:02:49 +0100
committerGreg Kroah-Hartman2015-12-21 23:00:17 +0100
commit07859def5de0d909334a2e45e5e428f393e8cc9e (patch)
tree384efd160731eb89af00a521e7d47f8513c87d23 /drivers/staging/rdma/hfi1/chip.c
parentstaging/rdma/hfi1: Fix a possible null pointer dereference (diff)
downloadkernel-qcow2-linux-07859def5de0d909334a2e45e5e428f393e8cc9e.tar.gz
kernel-qcow2-linux-07859def5de0d909334a2e45e5e428f393e8cc9e.tar.xz
kernel-qcow2-linux-07859def5de0d909334a2e45e5e428f393e8cc9e.zip
staging/rdma/hfi1: Fix for module parameter hdrq_entsize when it's 0
If driver is loaded with parameter hdrq_entsize=0, then there's a NULL dereference when the driver gets unloaded. This causes a kernel Oops and prevents the module from being unloaded. This patch fixes this issue by making sure -EINVAL gets returned when hdrq_entsize=0. Reviewed-by: Chegondi, Harish <harish.chegondi@intel.com> Reviewed-by: Haralanov, Mitko <mitko.haralanov@intel.com> Signed-off-by: Sebastian Sanchez <sebastian.sanchez@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rdma/hfi1/chip.c')
0 files changed, 0 insertions, 0 deletions