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

Commit 000cf610 authored by android-t1's avatar android-t1
Browse files

Integrate security patch 2022-06-05-CVE-2022-20141

Change-Id: I70df7cfb4fac7e597a71e9464f35d13ce3da7fc9
parent bcdf0c02
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -2735,6 +2735,7 @@ int ip_check_mc_rcu(struct in_device *in_dev, __be32 mc_addr, __be32 src_addr, u
		rv = 1;
	} else if (im) {
		if (src_addr) {
			spin_lock_bh(&im->lock);
			for (psf = im->sources; psf; psf = psf->sf_next) {
				if (psf->sf_inaddr == src_addr)
					break;
@@ -2745,6 +2746,7 @@ int ip_check_mc_rcu(struct in_device *in_dev, __be32 mc_addr, __be32 src_addr, u
					im->sfcount[MCAST_EXCLUDE];
			else
				rv = im->sfcount[MCAST_EXCLUDE] != 0;
			spin_unlock_bh(&im->lock);
		} else
			rv = 1; /* unspecified source; tentatively allow */
	}