ath6kl: Avoid null ptr dereference while printing reg domain pair
authorRaja Mani <rmani@qca.qualcomm.com>
Fri, 21 Sep 2012 09:38:53 +0000 (15:08 +0530)
committerKalle Valo <kvalo@qca.qualcomm.com>
Wed, 24 Oct 2012 08:49:50 +0000 (11:49 +0300)
commit43a06b346d1350009c8f7eaa1a2a137395874ca0
tree07e917a46e113a7ed30dd4f7d9f239b364d0d113
parent58109df67aa073756eb5a2dc2ae068bc1bbcc125
ath6kl: Avoid null ptr dereference while printing reg domain pair

Return value of ath6kl_get_regpair() is stored in 'regpair' in
ath6kl_wmi_regdomain_event() func and it's directly accessed
in the debug prints without checking for NULL value. There are
situation to get NULL pointer as a return value from
ath6kl_get_regpair() func. Fix this.

Found this on code review.

Signed-off-by: Raja Mani <rmani@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath6kl/wmi.c