diff options
-rw-r--r-- | drivers/dma-buf/dma-buf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma-buf/dma-buf.c b/drivers/dma-buf/dma-buf.c index 9887d72cf804..4a038dcf5361 100644 --- a/drivers/dma-buf/dma-buf.c +++ b/drivers/dma-buf/dma-buf.c | |||
@@ -559,7 +559,7 @@ struct dma_buf_attachment *dma_buf_attach(struct dma_buf *dmabuf, | |||
559 | return ERR_PTR(-EINVAL); | 559 | return ERR_PTR(-EINVAL); |
560 | 560 | ||
561 | attach = kzalloc(sizeof(*attach), GFP_KERNEL); | 561 | attach = kzalloc(sizeof(*attach), GFP_KERNEL); |
562 | if (attach == NULL) | 562 | if (!attach) |
563 | return ERR_PTR(-ENOMEM); | 563 | return ERR_PTR(-ENOMEM); |
564 | 564 | ||
565 | attach->dev = dev; | 565 | attach->dev = dev; |