git: kernel - Fix tapN creation >= 32 units, fix pty issues >= 32 ptys
Matthew Dillon
dillon at crater.dragonflybsd.org
Wed Mar 21 18:19:21 PDT 2018
commit 40986f5e1d8b3b137d67c5dcc94cb5c29bba3750
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Wed Mar 21 18:11:10 2018 -0700
kernel - Fix tapN creation >= 32 units, fix pty issues >= 32 ptys
* Fix ifconfig tapN create for N >= 32.
* devfs_clone_bitmap_chk(), which only if_tap uses, was returning
the wrong default value for unit numbers beyond the current
dynamic size of the bitmap.
* Both devfs_clone_bitmap_chk() and devfs_clone_bitmap_put()
were improperly using (1 << unit) instead of (1L << unit)
when masking the 64-bit (long) bitmap elements, resulting in
chaos for units >= 32.
* This also should fix pty issues >= 32 ptys.
Reported-by: Aaron Li
Summary of changes:
sys/vfs/devfs/devfs_helper.c | 14 ++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/40986f5e1d8b3b137d67c5dcc94cb5c29bba3750
--
DragonFly BSD source repository
More information about the Commits
mailing list