But what was priv->fblen? The size you are trying to allocate? If it is greater then 124,848 then the allocation will fail.priv->fbmem = 0
For 16-bit color and 320x240 LCD you would need to allocate 2*320*240 = 153,600 then I would expect priv->fblen to be 153,600 and I would expect the allocation to fail if you have only 134,848 bytes of free memory.