From bae16d855660811f218783f9130c1a7d300571f9 Mon Sep 17 00:00:00 2001 From: mattf Date: Fri, 9 Mar 2007 19:59:43 +0000 Subject: Make sure we don't allocate as GFP_KERNEL in atomic context git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@2301 5390a7c7-147a-4af0-8ec9-7488f05a26cb --- wct4xxp/vpm450m.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wct4xxp') diff --git a/wct4xxp/vpm450m.c b/wct4xxp/vpm450m.c index a30dacf..ca357d1 100644 --- a/wct4xxp/vpm450m.c +++ b/wct4xxp/vpm450m.c @@ -209,7 +209,7 @@ static void vpm450m_setecmode(struct vpm450m *vpm450m, int channel, int mode) if (vpm450m->ecmode[channel] == mode) return; - modify = kmalloc(sizeof(tOCT6100_CHANNEL_MODIFY), GFP_KERNEL); + modify = kmalloc(sizeof(tOCT6100_CHANNEL_MODIFY), GFP_ATOMIC); if (!modify) { printk("wct4xxp: Unable to allocate memory for setec!\n"); return; -- cgit v1.2.3