Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756086Ab3H2Kz0 (ORCPT ); Thu, 29 Aug 2013 06:55:26 -0400 Received: from smtp2.it.da.ut.ee ([193.40.5.67]:60861 "EHLO smtp2.it.da.ut.ee" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753284Ab3H2KzZ (ORCPT ); Thu, 29 Aug 2013 06:55:25 -0400 Date: Thu, 29 Aug 2013 13:55:21 +0300 (EEST) From: Meelis Roos To: Sergey Senozhatsky cc: Alex Deucher , Linux Kernel list , dri-devel@lists.freedesktop.org, Greg Kroah-Hartman Subject: Re: [PATCH] radeon kms: fix uninitialised hotplug work usage in r100_irq_process() In-Reply-To: <20130829092935.GB2235@swordfish> Message-ID: References: <20130829092935.GB2235@swordfish> User-Agent: Alpine 1.00 (SOC 882 2007-12-20) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1572 Lines: 47 > Reported-by: Meelis Roos > Signed-off-by: Sergey Senozhatsky It works, thank you for quick response! Tested-by: Meelis Roos > drivers/gpu/drm/radeon/radeon_irq_kms.c | 10 ++++++---- > 1 file changed, 6 insertions(+), 4 deletions(-) > > diff --git a/drivers/gpu/drm/radeon/radeon_irq_kms.c b/drivers/gpu/drm/radeon/radeon_irq_kms.c > index 081886b..cc9e848 100644 > --- a/drivers/gpu/drm/radeon/radeon_irq_kms.c > +++ b/drivers/gpu/drm/radeon/radeon_irq_kms.c > @@ -275,17 +275,19 @@ int radeon_irq_kms_init(struct radeon_device *rdev) > dev_info(rdev->dev, "radeon: using MSI.\n"); > } > } > + > + INIT_WORK(&rdev->hotplug_work, radeon_hotplug_work_func); > + INIT_WORK(&rdev->audio_work, r600_audio_update_hdmi); > + INIT_WORK(&rdev->reset_work, radeon_irq_reset_work_func); > + > rdev->irq.installed = true; > r = drm_irq_install(rdev->ddev); > if (r) { > rdev->irq.installed = false; > + flush_work(&rdev->hotplug_work); > return r; > } > > - INIT_WORK(&rdev->hotplug_work, radeon_hotplug_work_func); > - INIT_WORK(&rdev->audio_work, r600_audio_update_hdmi); > - INIT_WORK(&rdev->reset_work, radeon_irq_reset_work_func); > - > DRM_INFO("radeon: irq initialized.\n"); > return 0; > } > -- Meelis Roos (mroos@linux.ee) -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/