diff options
Diffstat (limited to 'drivers/net/wireless/ipw2200.c')
-rw-r--r-- | drivers/net/wireless/ipw2200.c | 3 |
1 files changed, 1 insertions, 2 deletions
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); |