diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/Kconfig | 2 | ||||
-rw-r--r-- | drivers/net/wireless/ipw2200.c | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/wireless/Kconfig b/drivers/net/wireless/Kconfig index 00e55165b760..d94421c74264 100644 --- a/drivers/net/wireless/Kconfig +++ b/drivers/net/wireless/Kconfig | |||
@@ -192,7 +192,7 @@ config IPW_DEBUG | |||
192 | 192 | ||
193 | config IPW2200 | 193 | config IPW2200 |
194 | tristate "Intel PRO/Wireless 2200BG and 2915ABG Network Connection" | 194 | tristate "Intel PRO/Wireless 2200BG and 2915ABG Network Connection" |
195 | depends on IEEE80211 && PCI | 195 | depends on NET_RADIO && IEEE80211 && PCI |
196 | select FW_LOADER | 196 | select FW_LOADER |
197 | ---help--- | 197 | ---help--- |
198 | A driver for the Intel PRO/Wireless 2200BG and 2915ABG Network | 198 | A driver for the Intel PRO/Wireless 2200BG and 2915ABG Network |
diff --git a/drivers/net/wireless/ipw2200.c b/drivers/net/wireless/ipw2200.c index 5e7c7e944c9d..0e47b23605f9 100644 --- a/drivers/net/wireless/ipw2200.c +++ b/drivers/net/wireless/ipw2200.c | |||
@@ -4944,12 +4944,11 @@ static struct ipw_rx_queue *ipw_rx_queue_alloc(struct ipw_priv *priv) | |||
4944 | struct ipw_rx_queue *rxq; | 4944 | struct ipw_rx_queue *rxq; |
4945 | int i; | 4945 | int i; |
4946 | 4946 | ||
4947 | rxq = (struct ipw_rx_queue *)kmalloc(sizeof(*rxq), GFP_KERNEL); | 4947 | rxq = kzalloc(sizeof(*rxq), GFP_KERNEL); |
4948 | if (unlikely(!rxq)) { | 4948 | if (unlikely(!rxq)) { |
4949 | IPW_ERROR("memory allocation failed\n"); | 4949 | IPW_ERROR("memory allocation failed\n"); |
4950 | return NULL; | 4950 | return NULL; |
4951 | } | 4951 | } |
4952 | memset(rxq, 0, sizeof(*rxq)); | ||
4953 | spin_lock_init(&rxq->lock); | 4952 | spin_lock_init(&rxq->lock); |
4954 | INIT_LIST_HEAD(&rxq->rx_free); | 4953 | INIT_LIST_HEAD(&rxq->rx_free); |
4955 | INIT_LIST_HEAD(&rxq->rx_used); | 4954 | INIT_LIST_HEAD(&rxq->rx_used); |