From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dave Airlie Subject: Re: [RFC] drm + i915 DP MST code preview Date: Thu, 8 May 2014 17:32:53 +1000 Message-ID: References: <1399005585-2396-1-git-send-email-airlied@gmail.com> <20140502085206.GB21695@nuc-i3427.alporthouse.com> <20140503090028.GB9420@nuc-i3427.alporthouse.com> <5369DDD5.5010906@nvidia.com> <20140507080734.GR5730@phenom.ffwll.local> <20140508072402.GB20315@nuc-i3427.alporthouse.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-lb0-f170.google.com (mail-lb0-f170.google.com [209.85.217.170]) by gabe.freedesktop.org (Postfix) with ESMTP id AF4AE6EDF8 for ; Thu, 8 May 2014 00:32:54 -0700 (PDT) Received: by mail-lb0-f170.google.com with SMTP id w7so2976444lbi.1 for ; Thu, 08 May 2014 00:32:53 -0700 (PDT) In-Reply-To: <20140508072402.GB20315@nuc-i3427.alporthouse.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: Chris Wilson , Dave Airlie , Daniel Vetter , Aaron Plattner , dri-devel List-Id: dri-devel@lists.freedesktop.org On 8 May 2014 17:24, Chris Wilson wrote: > On Thu, May 08, 2014 at 11:56:02AM +1000, Dave Airlie wrote: >> I've pushed a branch of -modesetting to >> >> http://cgit.freedesktop.org/~airlied/xf86-video-modesetting/log/?h=dp-mst > > In parse_path_blob(): > char conn_id[5]; > > len = conn - (blob_data + 4); > if (len + 1> 5) return -1; > > memcpy(conn_id, blob_data + 4, len); > conn_id[len + 1] = '\0'; > ^^^^^^^ should just be len. Nice catch, thanks, I'll fix that, The kernel side for this along with even more locking and refcounting fixes is in http://cgit.freedesktop.org/~airlied/linux/log/?h=drm-i915-mst-support Dave.