Commit a9bb075d authored by Olav Haugan's avatar Olav Haugan Committed by Greg Kroah-Hartman

gpu: ion: Add missing argument to WARN call

The condition argument to the WARN call in ion_free and
ion_share_dma_buf are missing. Add the argument to
allow correct printing of warning message.
Signed-off-by: default avatarOlav Haugan <ohaugan@codeaurora.org>
[jstultz: modified patch to apply to staging directory]
Signed-off-by: default avatarJohn Stultz <john.stultz@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent fe65ec5b
...@@ -408,7 +408,7 @@ void ion_free(struct ion_client *client, struct ion_handle *handle) ...@@ -408,7 +408,7 @@ void ion_free(struct ion_client *client, struct ion_handle *handle)
mutex_unlock(&client->lock); mutex_unlock(&client->lock);
if (!valid_handle) { if (!valid_handle) {
WARN("%s: invalid handle passed to free.\n", __func__); WARN(1, "%s: invalid handle passed to free.\n", __func__);
return; return;
} }
ion_handle_put(handle); ion_handle_put(handle);
...@@ -906,7 +906,7 @@ int ion_share_dma_buf(struct ion_client *client, struct ion_handle *handle) ...@@ -906,7 +906,7 @@ int ion_share_dma_buf(struct ion_client *client, struct ion_handle *handle)
valid_handle = ion_handle_validate(client, handle); valid_handle = ion_handle_validate(client, handle);
mutex_unlock(&client->lock); mutex_unlock(&client->lock);
if (!valid_handle) { if (!valid_handle) {
WARN("%s: invalid handle passed to share.\n", __func__); WARN(1, "%s: invalid handle passed to share.\n", __func__);
return -EINVAL; return -EINVAL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment