From 2a8cc7259e236773f1b8423ef63305a5b8bfd652 Mon Sep 17 00:00:00 2001 From: "Ondrej Zajicek (work)" Date: Thu, 7 Jan 2021 01:56:00 +0100 Subject: Kernel: Do not check templates So one can define kernel protocol template without channels. For other protocols, it is either irrelevant or already done. Thanks to Clemens Schrimpe for the bugreport. --- sysdep/unix/krt.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sysdep/unix/krt.c') diff --git a/sysdep/unix/krt.c b/sysdep/unix/krt.c index cccee456..c00c660d 100644 --- a/sysdep/unix/krt.c +++ b/sysdep/unix/krt.c @@ -1008,6 +1008,10 @@ krt_postconfig(struct proto_config *CF) { struct krt_config *cf = (void *) CF; + /* Do not check templates at all */ + if (cf->c.class == SYM_TEMPLATE) + return; + if (EMPTY_LIST(CF->channels)) cf_error("Channel not specified"); -- cgit v1.2.3