aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/kbd
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/kbd')
-rw-r--r--sys/dev/kbd/atkbd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/kbd/atkbd.c b/sys/dev/kbd/atkbd.c
index b14cfdba5706..05a98f417d03 100644
--- a/sys/dev/kbd/atkbd.c
+++ b/sys/dev/kbd/atkbd.c
@@ -372,7 +372,7 @@ atkbd_init(int unit, keyboard_t **kbdp, void *arg, int flags)
free(accmap, M_DEVBUF);
if (fkeymap != NULL)
free(fkeymap, M_DEVBUF);
- if (kbd == NULL)
+ if (kbd != NULL)
free(kbd, M_DEVBUF);
return ENOMEM;
}