From patchwork Fri Jun 14 20:39:05 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?St=C3=A9phane_Marchesin?= X-Patchwork-Id: 2726651 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 56C31C0AB1 for ; Sat, 15 Jun 2013 13:10:29 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9513320189 for ; Sat, 15 Jun 2013 13:10:28 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id BC80720181 for ; Sat, 15 Jun 2013 13:10:27 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id AC5C5E5DBF for ; Sat, 15 Jun 2013 06:10:27 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pa0-f48.google.com (mail-pa0-f48.google.com [209.85.220.48]) by gabe.freedesktop.org (Postfix) with ESMTP id 4C449E5C8A for ; Fri, 14 Jun 2013 13:39:12 -0700 (PDT) Received: by mail-pa0-f48.google.com with SMTP id kp12so989785pab.7 for ; Fri, 14 Jun 2013 13:39:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:x-mailer:mime-version :content-type:content-transfer-encoding; bh=0A6lFqpdf76dBsPLyjhIgs1qdShQ2kBdQX5SlNFmPwE=; b=koccmhf4ggo15iSkWndYLSOBMq02Z3i3VLKTrwdrI0xElXccNYqlskR/x5hb0VLyah 5qGtBQzvWtSQdji9hkHMz8iPCwiKMzY9pcj6Pjj3sZIe8F9LblU95BX63490UFcdOunu o96Dhgg5y18a391LCbom71FeRu7IeoteUWAJE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:mime-version :content-type:content-transfer-encoding:x-gm-message-state; bh=0A6lFqpdf76dBsPLyjhIgs1qdShQ2kBdQX5SlNFmPwE=; b=EnWdJS2rUVB2yYJEBApoxkiTt3DX6kTFFgR2Abg04aMYYmP8UPfXveXz7Wc4Mz/31l xK9sGnXbnR//e6MSYbBZhAZY11Zmhs76xszYdNG96JsjkgGBzQmqMeYlDnXyT+Ym824s vFQ5f03cAR6zGHGtHSDxCV+NDLfCWlQP01mXLA2JIJnflRqbTgfuQbDqS5g5D847dPhK awVvaTKRCwhRZDAJbwC/ghmrDZID6KcLkShIYQ8HCoXmD/yxQrx7GkFTNC53YmY2nWSa wvhnToZ9YBpwYybXmsSRBA5iJfwJ86I2rK06Tz7n4GBPTw3/WCZsGnlh0CmEH7A3W/yy 9zfg== X-Received: by 10.66.164.232 with SMTP id yt8mr4105100pab.21.1371242350928; Fri, 14 Jun 2013 13:39:10 -0700 (PDT) Received: from localhost ([2620:0:1000:1b01:82c1:6eff:fef8:b068]) by mx.google.com with ESMTPSA id l4sm3460687pbo.6.2013.06.14.13.39.08 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 14 Jun 2013 13:39:09 -0700 (PDT) From: =?UTF-8?q?St=C3=A9phane=20Marchesin?= To: dri-devel@lists.freedesktop.org Subject: [PATCH] drm: Initialize list in event->base.link Date: Fri, 14 Jun 2013 13:39:05 -0700 Message-Id: <1371242346-3141-1-git-send-email-marcheu@chromium.org> X-Mailer: git-send-email 1.8.3 MIME-Version: 1.0 X-Gm-Message-State: ALoCoQkMbFrrSPjXh/dyM8tRhq06QjSOJLQ4PWbhu7+5E5iC+O8JNXYw8byfupSsoA+Rk6hXHXMC X-Mailman-Approved-At: Sat, 15 Jun 2013 06:05:24 -0700 Cc: =?UTF-8?q?St=C3=A9phane=20Marchesin?= X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Errors-To: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The structure was kzalloced, so prev == next == NULL by default which is invalid. Signed-off-by: Stéphane Marchesin --- drivers/gpu/drm/drm_irq.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/drm_irq.c b/drivers/gpu/drm/drm_irq.c index 8bcce78..143a311 100644 --- a/drivers/gpu/drm/drm_irq.c +++ b/drivers/gpu/drm/drm_irq.c @@ -1158,6 +1158,7 @@ static int drm_queue_vblank_event(struct drm_device *dev, int pipe, e->event.base.length = sizeof e->event; e->event.user_data = vblwait->request.signal; e->base.event = &e->event.base; + INIT_LIST_HEAD(&e->base.link); e->base.file_priv = file_priv; e->base.destroy = (void (*) (struct drm_pending_event *)) kfree;