mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-06 09:17:25 +00:00
Fix an order of operations buglet. ! has higher precedence than &. This
should fix the warnings about bpf not calling make_dev().
This commit is contained in:
parent
09aafe5402
commit
d1d74c2886
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=68271
@ -363,7 +363,7 @@ bpfopen(dev, flags, fmt, p)
|
||||
*/
|
||||
if (d)
|
||||
return (EBUSY);
|
||||
if (!dev->si_flags & SI_NAMED)
|
||||
if ((dev->si_flags & SI_NAMED) == 0)
|
||||
make_dev(&bpf_cdevsw, minor(dev), UID_ROOT, GID_WHEEL, 0600,
|
||||
"bpf%d", dev2unit(dev));
|
||||
MALLOC(d, struct bpf_d *, sizeof(*d), M_BPF, M_WAITOK);
|
||||
|
Loading…
Reference in New Issue
Block a user