summaryrefslogtreecommitdiff
path: root/bpfc.c
diff options
context:
space:
mode:
authorDaniel Borkmann <dborkman@redhat.com>2013-06-15 20:15:40 +0200
committerDaniel Borkmann <dborkman@redhat.com>2013-06-15 20:15:40 +0200
commitd9b5259582a6073d1c2bada8c3294c7550c7b678 (patch)
treee48c3bc7c9c21b1cc9f48f64bd5b279e735a765a /bpfc.c
parentbc41b879d5f8d2286f094d85222d0d40b90ace00 (diff)
curve: free buffers in reverse order to allocation
First destroy spinlocks, then free the encryption and decryption buffers. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Diffstat (limited to 'bpfc.c')
0 files changed, 0 insertions, 0 deletions
ully set up, and then registered all in one step with device_add. That's true for properties and property groups, but not for parents and child devices. Those must be fully registered before you can register a child. Add a bit of tracking to make sure that asynchronous mst connector hotplugging gets this right. For consistency we rely upon the implicit barriers of the connector->mutex, which is taken anyway, to ensure that at least either the connector or device registration call will work out. Mildly tested since I can't reliably reproduce this on my mst box here. Reported-by: Dave Hansen <dave.hansen@intel.com> Cc: Dave Hansen <dave.hansen@intel.com> Acked-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com> Link: http://patchwork.freedesktop.org/patch/msgid/1484237756-2720-1-git-send-email-daniel.vetter@ffwll.ch
Diffstat (limited to 'sound/usb/helper.c')