All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] ath6kl: Fix system crash sometimes for USB hotplug
@ 2012-04-12 12:48 raychen
  2012-04-16  6:12 ` Kalle Valo
  0 siblings, 1 reply; 2+ messages in thread
From: raychen @ 2012-04-12 12:48 UTC (permalink / raw)
  To: kvalo; +Cc: ath6kl-devel, linux-wireless, Ray Chen

From: Ray Chen <raychen@qca.qualcomm.com>

System crash because of NULL pointer reference due to
cleanup_scatter is not implemented for USB.

Signed-off-by: Ray Chen <raychen@qca.qualcomm.com>
---
 drivers/net/wireless/ath/ath6kl/usb.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/drivers/net/wireless/ath/ath6kl/usb.c b/drivers/net/wireless/ath/ath6kl/usb.c
index 73aacdd..dfbbe9e 100644
--- a/drivers/net/wireless/ath/ath6kl/usb.c
+++ b/drivers/net/wireless/ath/ath6kl/usb.c
@@ -1037,6 +1037,14 @@ static void ath6kl_usb_stop(struct ath6kl *ar)
 	hif_stop(ar);
 }
 
+static void ath6kl_usb_cleanup_scatter(struct ath6kl *ar)
+{
+	/*
+	 * USB doesn't support it. Just return.
+	 */
+	return;
+}
+
 static const struct ath6kl_hif_ops ath6kl_usb_ops = {
 	.diag_read32 = ath6kl_usb_diag_read32,
 	.diag_write32 = ath6kl_usb_diag_write32,
@@ -1049,6 +1057,7 @@ static const struct ath6kl_hif_ops ath6kl_usb_ops = {
 	.pipe_get_default = ath6kl_usb_get_default_pipe,
 	.pipe_map_service = ath6kl_usb_map_service_pipe,
 	.pipe_get_free_queue_number = ath6kl_usb_get_free_queue_number,
+	.cleanup_scatter = ath6kl_usb_cleanup_scatter,
 };
 
 /* ath6kl usb driver registered functions */
-- 
1.7.0.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH 1/1] ath6kl: Fix system crash sometimes for USB hotplug
  2012-04-12 12:48 [PATCH 1/1] ath6kl: Fix system crash sometimes for USB hotplug raychen
@ 2012-04-16  6:12 ` Kalle Valo
  0 siblings, 0 replies; 2+ messages in thread
From: Kalle Valo @ 2012-04-16  6:12 UTC (permalink / raw)
  To: raychen; +Cc: ath6kl-devel, linux-wireless

On 04/12/2012 03:48 PM, raychen@qca.qualcomm.com wrote:
> From: Ray Chen <raychen@qca.qualcomm.com>
> 
> System crash because of NULL pointer reference due to
> cleanup_scatter is not implemented for USB.
> 
> Signed-off-by: Ray Chen <raychen@qca.qualcomm.com>

Thanks, applied.

Kalle

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-04-16  6:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-12 12:48 [PATCH 1/1] ath6kl: Fix system crash sometimes for USB hotplug raychen
2012-04-16  6:12 ` Kalle Valo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.