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

Commit e14e6b52 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "diag: Protect the decrement of number of diag clients"

parents 38a47b85 567794d3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -370,8 +370,8 @@ static int diagchar_open(struct inode *inode, struct file *file)
	return -ENOMEM;

fail:
	mutex_unlock(&driver->diagchar_mutex);
	driver->num_clients--;
	mutex_unlock(&driver->diagchar_mutex);
	pr_err_ratelimited("diag: Insufficient memory for new client");
	return -ENOMEM;
}