+ vt-decrement-ref-count-of-the-vt-backend-on-deallocation.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled

     vt: Decrement ref count of the VT backend on deallocation

has been added to the -mm tree.  Its filename is

     vt-decrement-ref-count-of-the-vt-backend-on-deallocation.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: vt: Decrement ref count of the VT backend on deallocation
From: "Antonino A. Daplas" <adaplas@xxxxxxxxx>

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.

Signed-off-by: Antonino Daplas <adaplas@xxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 drivers/char/vt.c |    1 +
 1 file changed, 1 insertion(+)

diff -puN drivers/char/vt.c~vt-decrement-ref-count-of-the-vt-backend-on-deallocation drivers/char/vt.c
--- a/drivers/char/vt.c~vt-decrement-ref-count-of-the-vt-backend-on-deallocation
+++ a/drivers/char/vt.c
@@ -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)
_

Patches currently in -mm which might be from adaplas@xxxxxxxxx are

origin.patch
vt-decrement-ref-count-of-the-vt-backend-on-deallocation.patch
pnxrgbfb-remove-ttyh-from-include.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux