diff --git a/drivers/block/floppy.c b/drivers/block/floppy.c index a391a3cfb3fe6ef7c7b065cd9160671d58318ae5..184887af4b9fbbb365480a6e275544c501ae2b5a 100644 --- a/drivers/block/floppy.c +++ b/drivers/block/floppy.c @@ -3119,7 +3119,7 @@ static int raw_cmd_copyin(int cmd, void __user *param, *rcmd = NULL; loop: - ptr = kmalloc(sizeof(struct floppy_raw_cmd), GFP_USER); + ptr = kmalloc(sizeof(struct floppy_raw_cmd), GFP_KERNEL); if (!ptr) return -ENOMEM; *rcmd = ptr;