Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2d813760 authored by David S. Miller's avatar David S. Miller
Browse files
parents a4d25803 df6d0230
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -2613,6 +2613,11 @@ int iwl_force_reset(struct iwl_priv *priv, int mode, bool external)
	if (test_bit(STATUS_EXIT_PENDING, &priv->status))
		return -EINVAL;

	if (test_bit(STATUS_SCANNING, &priv->status)) {
		IWL_DEBUG_INFO(priv, "scan in progress.\n");
		return -EINVAL;
	}

	if (mode >= IWL_MAX_FORCE_RESET) {
		IWL_DEBUG_INFO(priv, "invalid reset request.\n");
		return -EINVAL;
+1 −1
Original line number Diff line number Diff line
@@ -152,7 +152,7 @@ static int ioctl_private_iw_point(struct iw_point *iwp, unsigned int cmd,
	} else if (!iwp->pointer)
		return -EFAULT;

	extra = kmalloc(extra_size, GFP_KERNEL);
	extra = kzalloc(extra_size, GFP_KERNEL);
	if (!extra)
		return -ENOMEM;