diff options
Diffstat (limited to 'drivers/char/vt.c')
-rw-r--r-- | drivers/char/vt.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/char/vt.c b/drivers/char/vt.c index fb75da940b59..303956d34569 100644 --- a/drivers/char/vt.c +++ b/drivers/char/vt.c | |||
@@ -903,6 +903,7 @@ void vc_deallocate(unsigned int currcons) | |||
903 | if (vc_cons_allocated(currcons)) { | 903 | if (vc_cons_allocated(currcons)) { |
904 | struct vc_data *vc = vc_cons[currcons].d; | 904 | struct vc_data *vc = vc_cons[currcons].d; |
905 | vc->vc_sw->con_deinit(vc); | 905 | vc->vc_sw->con_deinit(vc); |
906 | put_pid(vc->vt_pid); | ||
906 | module_put(vc->vc_sw->owner); | 907 | module_put(vc->vc_sw->owner); |
907 | if (vc->vc_kmalloced) | 908 | if (vc->vc_kmalloced) |
908 | kfree(vc->vc_screenbuf); | 909 | kfree(vc->vc_screenbuf); |