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

Commit e2c4b721 authored by Roman Kagan's avatar Roman Kagan Committed by David S. Miller
Browse files

[ATM]: net/atm/ioctl.c: autoload pppoatm and br2684

parent 6b251858
Loading
Loading
Loading
Loading
+26 −8
Original line number Diff line number Diff line
@@ -105,16 +105,34 @@ int vcc_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
			if (!error)
				sock->state = SS_CONNECTED;
			goto done;
		default:
		case ATM_SETBACKEND:
		case ATM_NEWBACKENDIF:
			{
				atm_backend_t backend;
				error = get_user(backend, (atm_backend_t __user *) argp);
				if (error)
					goto done;
				switch (backend) {
					case ATM_BACKEND_PPP:
						request_module("pppoatm");
						break;
					case ATM_BACKEND_BR2684:
						request_module("br2684");
						break;
				}

	if (cmd == ATMMPC_CTRL || cmd == ATMMPC_DATA)
			}
			break;
		case ATMMPC_CTRL:
		case ATMMPC_DATA:
			request_module("mpoa");
	if (cmd == ATMARPD_CTRL)
			break;
		case ATMARPD_CTRL:
			request_module("clip");
	if (cmd == ATMLEC_CTRL)
			break;
		case ATMLEC_CTRL:
			request_module("lec");
			break;
	}

	error = -ENOIOCTLCMD;