|
@@ -3878,7 +3878,7 @@ static struct st_buffer *new_tape_buffer(int need_dma, int max_sg)
|
|
{
|
|
{
|
|
struct st_buffer *tb;
|
|
struct st_buffer *tb;
|
|
|
|
|
|
- tb = kzalloc(sizeof(struct st_buffer), GFP_ATOMIC);
|
|
|
|
|
|
+ tb = kzalloc(sizeof(struct st_buffer), GFP_KERNEL);
|
|
if (!tb) {
|
|
if (!tb) {
|
|
printk(KERN_NOTICE "st: Can't allocate new tape buffer.\n");
|
|
printk(KERN_NOTICE "st: Can't allocate new tape buffer.\n");
|
|
return NULL;
|
|
return NULL;
|
|
@@ -3889,7 +3889,7 @@ static struct st_buffer *new_tape_buffer(int need_dma, int max_sg)
|
|
tb->buffer_size = 0;
|
|
tb->buffer_size = 0;
|
|
|
|
|
|
tb->reserved_pages = kzalloc(max_sg * sizeof(struct page *),
|
|
tb->reserved_pages = kzalloc(max_sg * sizeof(struct page *),
|
|
- GFP_ATOMIC);
|
|
|
|
|
|
+ GFP_KERNEL);
|
|
if (!tb->reserved_pages) {
|
|
if (!tb->reserved_pages) {
|
|
kfree(tb);
|
|
kfree(tb);
|
|
return NULL;
|
|
return NULL;
|