From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752312AbdLLRfV (ORCPT ); Tue, 12 Dec 2017 12:35:21 -0500 Received: from bedivere.hansenpartnership.com ([66.63.167.143]:36750 "EHLO bedivere.hansenpartnership.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752338AbdLLRfO (ORCPT ); Tue, 12 Dec 2017 12:35:14 -0500 Message-ID: <1513100112.3110.28.camel@HansenPartnership.com> Subject: Re: [GIT PULL] SCSI fixes for 4.15-rc3 From: James Bottomley To: Linus Torvalds , "Martin K. Petersen" Cc: Johannes Thumshirn , Andrew Morton , linux-scsi , linux-kernel Date: Tue, 12 Dec 2017 09:35:12 -0800 In-Reply-To: References: <1513095686.3110.9.camel@HansenPartnership.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.20.5 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2017-12-12 at 09:32 -0800, Linus Torvalds wrote: > On Tue, Dec 12, 2017 at 9:22 AM, Martin K. Petersen > wrote: > > > > > > Arnd and Johannes fixed this up right away: > > The commit you point to _is_ the probnlem. It does: > >     struct bfad_im_port_s *im_port = shost->hostdata[0]; > > which is utter bullshit crap. > > Notice? It's assigning a pointer (im_port), from an integer value > ("hostdata[0]" is "unsigned long"). > > The code is garbage. he means this one: https://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi.git/commit/?h=fixes&id=48d83282db077f93b2cf40de120f4d6f29eb293b Which properly encapsulates the reference in a function which does the correct conversions. James