diff options
Diffstat (limited to 'net/wireless/wext-priv.c')
| -rw-r--r-- | net/wireless/wext-priv.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/wireless/wext-priv.c b/net/wireless/wext-priv.c index a3c2277de9e5..674d426a9d24 100644 --- a/net/wireless/wext-priv.c +++ b/net/wireless/wext-priv.c | |||
| @@ -7,6 +7,7 @@ | |||
| 7 | * | 7 | * |
| 8 | * (As all part of the Linux kernel, this file is GPL) | 8 | * (As all part of the Linux kernel, this file is GPL) |
| 9 | */ | 9 | */ |
| 10 | #include <linux/slab.h> | ||
| 10 | #include <linux/wireless.h> | 11 | #include <linux/wireless.h> |
| 11 | #include <linux/netdevice.h> | 12 | #include <linux/netdevice.h> |
| 12 | #include <net/iw_handler.h> | 13 | #include <net/iw_handler.h> |
| @@ -151,7 +152,7 @@ static int ioctl_private_iw_point(struct iw_point *iwp, unsigned int cmd, | |||
| 151 | } else if (!iwp->pointer) | 152 | } else if (!iwp->pointer) |
| 152 | return -EFAULT; | 153 | return -EFAULT; |
| 153 | 154 | ||
| 154 | extra = kmalloc(extra_size, GFP_KERNEL); | 155 | extra = kzalloc(extra_size, GFP_KERNEL); |
| 155 | if (!extra) | 156 | if (!extra) |
| 156 | return -ENOMEM; | 157 | return -ENOMEM; |
| 157 | 158 | ||
