Merge "msm: ipa: add null terminator"

This commit is contained in:
Linux Build Service Account 2017-10-17 14:20:44 -07:00 committed by Gerrit - the friendly Code Review server
commit a6872b79bc
2 changed files with 4 additions and 0 deletions

View file

@ -1541,6 +1541,8 @@ static int ipa_wwan_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
mutex_unlock(&add_mux_channel_lock); mutex_unlock(&add_mux_channel_lock);
return -EFAULT; return -EFAULT;
} }
extend_ioctl_data.u.rmnet_mux_val.vchannel_name
[IFNAMSIZ-1] = '\0';
IPAWANDBG("ADD_MUX_CHANNEL(%d, name: %s)\n", IPAWANDBG("ADD_MUX_CHANNEL(%d, name: %s)\n",
extend_ioctl_data.u.rmnet_mux_val.mux_id, extend_ioctl_data.u.rmnet_mux_val.mux_id,
extend_ioctl_data.u.rmnet_mux_val.vchannel_name); extend_ioctl_data.u.rmnet_mux_val.vchannel_name);

View file

@ -1677,6 +1677,8 @@ static int ipa3_wwan_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
add_mux_channel_lock); add_mux_channel_lock);
return -EFAULT; return -EFAULT;
} }
extend_ioctl_data.u.rmnet_mux_val.vchannel_name
[IFNAMSIZ-1] = '\0';
IPAWANDBG("ADD_MUX_CHANNEL(%d, name: %s)\n", IPAWANDBG("ADD_MUX_CHANNEL(%d, name: %s)\n",
extend_ioctl_data.u.rmnet_mux_val.mux_id, extend_ioctl_data.u.rmnet_mux_val.mux_id,
extend_ioctl_data.u.rmnet_mux_val.vchannel_name); extend_ioctl_data.u.rmnet_mux_val.vchannel_name);