|
@@ -886,6 +886,7 @@ void vc_disallocate(unsigned int currcons)
|
|
if (vc_cons_allocated(currcons)) {
|
|
if (vc_cons_allocated(currcons)) {
|
|
struct vc_data *vc = vc_cons[currcons].d;
|
|
struct vc_data *vc = vc_cons[currcons].d;
|
|
vc->vc_sw->con_deinit(vc);
|
|
vc->vc_sw->con_deinit(vc);
|
|
|
|
+ module_put(vc->vc_sw->owner);
|
|
if (vc->vc_kmalloced)
|
|
if (vc->vc_kmalloced)
|
|
kfree(vc->vc_screenbuf);
|
|
kfree(vc->vc_screenbuf);
|
|
if (currcons >= MIN_NR_CONSOLES)
|
|
if (currcons >= MIN_NR_CONSOLES)
|