mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 16:16:15 -04:00
Staging: otus: fix strcpy() overflow
wrq->name is only 16 characters long but "IEEE 802.11-MIMO" is 16 characters + a NULL character, so it's too long. This patch changes it to "IEEE 802.11abgn". Signed-off-by: Dan Carpenter <error27@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
84f8008a7d
commit
cc7e7d38e9
1 changed files with 1 additions and 1 deletions
|
|
@ -507,7 +507,7 @@ int usbdrvwext_giwname(struct net_device *dev,
|
|||
{
|
||||
/* struct usbdrv_private *macp = dev->ml_priv; */
|
||||
|
||||
strcpy(wrq->name, "IEEE 802.11-MIMO");
|
||||
strcpy(wrq->name, "IEEE 802.11abgn");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue