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.
This commit is contained in:
parent
a141959f07
commit
2a8cc7259e
1 changed files with 4 additions and 0 deletions
|
@ -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");
|
||||
|
||||
|
|
Loading…
Reference in a new issue