mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 05:39:54 -04:00
Merge "msm: ipa: Fix string out of bound issue."
This commit is contained in:
commit
dedd67b092
1 changed files with 4 additions and 0 deletions
|
|
@ -2095,6 +2095,8 @@ static int ipa3_wwan_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
|
|||
/* Get MTU */
|
||||
case RMNET_IOCTL_GET_MTU:
|
||||
mux_channel = rmnet_ipa3_ctx->mux_channel;
|
||||
ext_ioctl_data.u.mtu_params.if_name
|
||||
[IFNAMSIZ-1] = '\0';
|
||||
rmnet_index =
|
||||
find_vchannel_name_index(ext_ioctl_data.u.mtu_params.if_name);
|
||||
|
||||
|
|
@ -2115,6 +2117,8 @@ static int ipa3_wwan_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
|
|||
/* Set MTU */
|
||||
case RMNET_IOCTL_SET_MTU:
|
||||
mux_channel = rmnet_ipa3_ctx->mux_channel;
|
||||
ext_ioctl_data.u.mtu_params.if_name
|
||||
[IFNAMSIZ-1] = '\0';
|
||||
rmnet_index =
|
||||
find_vchannel_name_index(ext_ioctl_data.u.mtu_params.if_name);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue