u4b/audio: Fix panic by kfree(NULL)
authorAaron LI <aly@aaronly.me>
Sat, 15 Jun 2019 05:18:36 +0000 (13:18 +0800)
committerAaron LI <aly@aaronly.me>
Sat, 15 Jun 2019 05:18:36 +0000 (13:18 +0800)
commitb3f5eba6f618eafe64f78e2b3ad6056d72254ab5
treeae724129009dddbf4e0c2b1554c44780b3db9f4a
parent2a4ed1408f3f031e44dea6717350bbd99968dccf
u4b/audio: Fix panic by kfree(NULL)

DragonFly's kfree(9) doesn't allow a NULL pointer, while FreeBSD's
free(9) allows.

Reported-by: tse
Bug-report: #3192
sys/bus/u4b/audio/uaudio.c