diff options
| author | Thomas Gleixner <tglx@linutronix.de> | 2018-06-22 21:20:35 +0200 | 
|---|---|---|
| committer | Thomas Gleixner <tglx@linutronix.de> | 2018-06-22 21:20:35 +0200 | 
| commit | 7731b8bc94e599c9a79e428f3359ff2c34b7576a (patch) | |
| tree | 879f18ccbe274122f2d4f095b43cbc7f953e0ada /drivers/net/wireless/intel/iwlegacy/common.c | |
| parent | 48e315618dc4dc8904182cd221e3d395d5d97005 (diff) | |
| parent | 9ffc59d57228d74809700be6f7ecb1db10292f05 (diff) | |
Merge branch 'linus' into x86/urgent
Required to queue a dependent fix.
Diffstat (limited to 'drivers/net/wireless/intel/iwlegacy/common.c')
| -rw-r--r-- | drivers/net/wireless/intel/iwlegacy/common.c | 13 | 
1 files changed, 7 insertions, 6 deletions
diff --git a/drivers/net/wireless/intel/iwlegacy/common.c b/drivers/net/wireless/intel/iwlegacy/common.c index 063e19ced7c8..6514baf799fe 100644 --- a/drivers/net/wireless/intel/iwlegacy/common.c +++ b/drivers/net/wireless/intel/iwlegacy/common.c @@ -922,7 +922,7 @@ il_init_channel_map(struct il_priv *il)  	D_EEPROM("Parsing data for %d channels.\n", il->channel_count);  	il->channel_info = -	    kzalloc(sizeof(struct il_channel_info) * il->channel_count, +	    kcalloc(il->channel_count, sizeof(struct il_channel_info),  		    GFP_KERNEL);  	if (!il->channel_info) {  		IL_ERR("Could not allocate channel_info\n"); @@ -3041,9 +3041,9 @@ il_tx_queue_init(struct il_priv *il, u32 txq_id)  	}  	txq->meta = -	    kzalloc(sizeof(struct il_cmd_meta) * actual_slots, GFP_KERNEL); +	    kcalloc(actual_slots, sizeof(struct il_cmd_meta), GFP_KERNEL);  	txq->cmd = -	    kzalloc(sizeof(struct il_device_cmd *) * actual_slots, GFP_KERNEL); +	    kcalloc(actual_slots, sizeof(struct il_device_cmd *), GFP_KERNEL);  	if (!txq->meta || !txq->cmd)  		goto out_free_arrays; @@ -3455,7 +3455,7 @@ il_init_geos(struct il_priv *il)  	}  	channels = -	    kzalloc(sizeof(struct ieee80211_channel) * il->channel_count, +	    kcalloc(il->channel_count, sizeof(struct ieee80211_channel),  		    GFP_KERNEL);  	if (!channels)  		return -ENOMEM; @@ -4654,8 +4654,9 @@ il_alloc_txq_mem(struct il_priv *il)  {  	if (!il->txq)  		il->txq = -		    kzalloc(sizeof(struct il_tx_queue) * -			    il->cfg->num_of_queues, GFP_KERNEL); +		    kcalloc(il->cfg->num_of_queues, +			    sizeof(struct il_tx_queue), +			    GFP_KERNEL);  	if (!il->txq) {  		IL_ERR("Not enough memory for txq\n");  		return -ENOMEM;  | 
