From 54b108fb9daa9a7ab72eb207642510bc6c6d474a Mon Sep 17 00:00:00 2001 From: Levente Kurusa Date: Sun, 18 May 2014 11:59:11 +0200 Subject: [PATCH] qr: bitstream: use the bitstream's GFP for allocating the byte array Signed-off-by: Levente Kurusa --- lib/qr/bitstream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/qr/bitstream.c b/lib/qr/bitstream.c index a2965b4..450f96a 100644 --- a/lib/qr/bitstream.c +++ b/lib/qr/bitstream.c @@ -179,7 +179,7 @@ unsigned char *BitStream_toByte(struct BitStream *bstr) unsigned char *data, v; int i, j, size, bytes, p; - data = kzalloc((bstr->length + 7) / 8, GFP_ATOMIC); + data = kzalloc((bstr->length + 7) / 8, bstr->gfp); if (!data) return NULL; size = BitStream_size(bstr); -- 1.8.3.1