From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Wilcox Subject: Re: [PATCH] [USB] UAS: Use kzalloc instead of kmalloc Date: Mon, 8 Nov 2010 06:21:31 -0500 Message-ID: <20101108112131.GG4173@linux.intel.com> References: <628096.54960.qm@web31807.mail.mud.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mga02.intel.com ([134.134.136.20]:50574 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754444Ab0KHLVd (ORCPT ); Mon, 8 Nov 2010 06:21:33 -0500 Content-Disposition: inline In-Reply-To: <628096.54960.qm@web31807.mail.mud.yahoo.com> Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: Luben Tuikov Cc: Greg KH , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org On Wed, Oct 27, 2010 at 01:22:22PM -0700, Luben Tuikov wrote: > "Be conservative in what you send, liberal in what > you accept." -- In the spirit of this adage, don't > send Command IUs with randomly filled in data in > the reserved fields. (Yes, this shows up on the > wire.) Applied, with a better changelog entry ... > @@ -660,7 +660,7 @@ static int uas_probe(struct usb_interface *intf, const struct usb_device_id *id) > return -ENODEV; > } > > - devinfo = kmalloc(sizeof(struct uas_dev_info), GFP_KERNEL); > + devinfo = kzalloc(sizeof(struct uas_dev_info), GFP_KERNEL); > if (!devinfo) > return -ENOMEM; > Except for this hunk, which isn't an IU and doesn't go out on the wire.