[lkml]   [2010]   [Mar]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    Patch in this message
    Subject[026/116] V4L/DVB (13961): em28xx-dvb: fix memleak in dvb_fini()
    2.6.32-stable review patch.  If anyone has any objections, please let us know.


    From: Francesco Lavra <>

    commit 19f48cb105b7fa18d0dcab435919a3a29b7a7c4c upstream.

    this patch fixes a memory leak which occurs when an em28xx card with DVB
    extension is unplugged or its DVB extension driver is unloaded. In
    dvb_fini(), dev->dvb must be freed before being set to NULL, as is done
    in dvb_init() in case of error.
    Note that this bug is also present in the latest stable kernel release.

    Signed-off-by: Francesco Lavra <>
    Signed-off-by: Mauro Carvalho Chehab <>
    Signed-off-by: Greg Kroah-Hartman <>

    drivers/media/video/em28xx/em28xx-dvb.c | 1 +
    1 file changed, 1 insertion(+)

    --- a/drivers/media/video/em28xx/em28xx-dvb.c
    +++ b/drivers/media/video/em28xx/em28xx-dvb.c
    @@ -610,6 +610,7 @@ static int dvb_fini(struct em28xx *dev)

    if (dev->dvb) {
    + kfree(dev->dvb);
    dev->dvb = NULL;

     \ /
      Last update: 2010-03-31 02:17    [W:6.320 / U:0.844 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site