+static ssize_t misc_read(struct file *file, char __user *user_buf, > + size_t count, loff_t *ppos) > +{ > + struct ieee80211_local *local = file->private_data; > + size_t bufsz = 1000; > + char *buf = kzalloc(bufsz, GFP_KERNEL); You need at most IEEE80211_MAX_QUEUES * 16 (==256) which I think you can put on the stack? johannes