]> git.baikalelectronics.ru Git - kernel.git/commit
neighbor: Initialize protocol when new pneigh_entry are created
authorDavid Ahern <dsahern@gmail.com>
Wed, 19 Dec 2018 23:53:22 +0000 (15:53 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Dec 2018 01:29:45 +0000 (17:29 -0800)
commitd1707245580b93bf4ba05dc7913ffbd176113f64
treee27c05bac0313a02d494f1811b5f01cb91602dc2
parentdc4dd53150769f468d6cc5abf46b1a2678c19129
neighbor: Initialize protocol when new pneigh_entry are created

pneigh_lookup uses kmalloc versus kzalloc when new entries are allocated.
Given that the newly added protocol field needs to be initialized.

Fixes: 488e8a298f11 ("neighbor: Add protocol attribute")
Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/neighbour.c