Thread (1 message) 1 message, 1 author, 2014-06-24

Re: [PATCH 00/22] Add and use pci_zalloc_consistent

From: Johannes Berg <johannes@sipsolutions.net>
Date: 2014-06-24 11:33:38
Also in: dri-devel, linux-arch, linux-crypto, linux-media, linux-rdma, linux-scsi, linux-wireless, lkml

Possibly related (same subject, not in this thread)

On Tue, 2014-06-24 at 09:27 +1000, Julian Calaby wrote:
quoted
- x = (T)pci_alloc_consistent(E1,E2,E3);
+ x = pci_zalloc_consistent(E1,E2,E3);
  if ((x==NULL) || ...) S
- memset((T2)x,0,E2);
I don't know much about SmPL, but wouldn't having that if statement
there reduce your matches?
Code that matched without the if statement would be buggy, since it
wouldn't be checking the pci_zalloc_consistent return value properly.l

johannes
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help