diff --git a/drivers/char/vt.c b/drivers/char/vt.c index 3ef823d7d255d78d39b2682c837dd33e0854f51b..da7e66a2a38b5dcda25270c6b4329069f36a886f 100644 --- a/drivers/char/vt.c +++ b/drivers/char/vt.c @@ -886,6 +886,7 @@ void vc_disallocate(unsigned int currcons) if (vc_cons_allocated(currcons)) { struct vc_data *vc = vc_cons[currcons].d; vc->vc_sw->con_deinit(vc); + module_put(vc->vc_sw->owner); if (vc->vc_kmalloced) kfree(vc->vc_screenbuf); if (currcons >= MIN_NR_CONSOLES)