Commit 2a8cc725 authored by Ondrej Zajicek (work)'s avatar Ondrej Zajicek (work)
Browse files

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.
parent a141959f
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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");