Re: [PATCH] firmware: make sure the fw file size is not 0

2013-01-16 Thread Luciano Coelho
On Wed, 2013-01-16 at 11:43 +0800, Ming Lei wrote: > On Tue, Jan 15, 2013 at 4:43 PM, Luciano Coelho wrote: > > If the requested firmware file size is 0 bytes in the filesytem, we > > will try to vmalloc(0), which causes a warning: > > > > [37834.750274] vmalloc: allocation failure: 0 bytes > > [3

Re: [PATCH] firmware: make sure the fw file size is not 0

2013-01-15 Thread Ming Lei
On Tue, Jan 15, 2013 at 4:43 PM, Luciano Coelho wrote: > If the requested firmware file size is 0 bytes in the filesytem, we > will try to vmalloc(0), which causes a warning: > > [37834.750274] vmalloc: allocation failure: 0 bytes > [37834.756347] kworker/1:1: page allocation failure: order:0, mod

[PATCH] firmware: make sure the fw file size is not 0

2013-01-15 Thread Luciano Coelho
If the requested firmware file size is 0 bytes in the filesytem, we will try to vmalloc(0), which causes a warning: [37834.750274] vmalloc: allocation failure: 0 bytes [37834.756347] kworker/1:1: page allocation failure: order:0, mode:0xd2 [37834.763214] [] (unwind_backtrace+0x0/0x13c) from [] (d