lkml.org 
[lkml]   [2012]   [Sep]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/3] scsi: create an all-zero filter for scanners
Il 12/09/2012 14:36, Alan Cox ha scritto:
>> > switch (sdev->type) {
>> > + case TYPE_SCANNER:
>> > + sdev->request_queue->cmd_filter =
>> > + kzalloc(sizeof(struct blk_cmd_filter), GFP_KERNEL);
>> > + /* fallthrough */
> Is that really desireable in the kzalloc failing case ?

Hmm, there is another kmalloc failure in the series that is worse than
this one, actually.

Paolo


\
 
 \ /
  Last update: 2012-09-12 15:21    [W:0.060 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site