Skip to contentSkip to conversation

vt: Decrement ref count of the VT backend on deallocation

PATCH New Antonino A. Daplas 1 participant 1 message Jul 2, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 vt: Decrement ref count of the VT backend on deallocation

When a VT is newly allocated, the module reference count of the backend will be incremented. This should be balanced by a module_put() when this VT is deallocated.

---

 drivers/char/vt.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/char/vt.c +1 -0
index 3ef823d..da7e66a 100644
@@ -886,6 +886,7 @@ void vc_disallocate(unsigned int currcon
 	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)

Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642