Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 73133876 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "net: rmnet_data: Fix potential memory corruption"

parents 545af185 c90c79c6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -561,7 +561,7 @@ int rmnet_vnd_create_dev(int id, struct net_device **new_device,
	char dev_prefix[IFNAMSIZ];
	int p, rc = 0;

	if (id < 0 || id > RMNET_DATA_MAX_VND) {
	if (id < 0 || id >= RMNET_DATA_MAX_VND) {
		*new_device = 0;
		return RMNET_CONFIG_BAD_ARGUMENTS;
	}