Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
size_t seq_len = 0;
size_t key_len = 0;
u8 *buf;
size_t seq_len = 0;
size_t key_len = 0;
u8 *buf;
u8 key_array[64];
int ret = 0;
u8 key_array[64];
int ret = 0;
- PRINT_K("SIOCSIWENCODEEXT...... \n");
+ PRINT_K("SIOCSIWENCODEEXT......\n");
- blen = sizeof(*param);
- buf = kmalloc((int)blen, (int)GFP_KERNEL);
+ buf = kzalloc(sizeof(struct viawget_wpa_param), GFP_KERNEL);
if (buf == NULL)
return -ENOMEM;
if (buf == NULL)
return -ENOMEM;
param = (struct viawget_wpa_param *)buf;
// recover alg_name
param = (struct viawget_wpa_param *)buf;
// recover alg_name
spin_unlock_irq(&pDevice->lock);
error:
spin_unlock_irq(&pDevice->lock);
error: