Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1420418
| From | Sinan Kaya <okaya@codeaurora.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH V6 7/8] vfio: platform: check reset call return code during open |
| Date | 2016-06-13 05:20 +0200 |
| Message-ID | <rJqzT-A7-3@gated-at.bofh.it> (permalink) |
| References | <rDUAF-67E-5@gated-at.bofh.it> <rDUAF-67E-11@gated-at.bofh.it> <rHvNn-7ix-9@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 6/7/2016 4:21 PM, Auger Eric wrote:
>> - vfio_platform_call_reset(vdev, NULL);
>> > + ret = vfio_platform_call_reset(vdev, &extra_dbg);
>> > + if (ret && vdev->reset_required) {
>> > + dev_warn(vdev->device, "reset driver is required and reset call failed in open (%d) %s\n",
>> > + ret, extra_dbg ? extra_dbg : "");
>> > + goto err_irq;
> I am afraid you need to tear down the resources allocated by vfio_platform_irq_init.
>
> Best Regards
>
> Eric
I added this to the error path and replaced the goto above with err_rst.
+err_rst:
+ vfio_platform_irq_cleanup(vdev);
err_irq:
vfio_platform_regions_cleanup(vdev);
--
Sinan Kaya
Qualcomm Technologies, Inc. on behalf of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: [PATCH V6 7/8] vfio: platform: check reset call return code during open Auger Eric <eric.auger@redhat.com> - 2016-06-07 22:30 +0200 Re: [PATCH V6 7/8] vfio: platform: check reset call return code during open Sinan Kaya <okaya@codeaurora.org> - 2016-06-13 05:20 +0200
csiph-web