diff options
Diffstat (limited to 'drivers/usb/gadget/tcm_usb_gadget.c')
-rw-r--r-- | drivers/usb/gadget/tcm_usb_gadget.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/gadget/tcm_usb_gadget.c b/drivers/usb/gadget/tcm_usb_gadget.c index f058c0368d61..819875c7e394 100644 --- a/drivers/usb/gadget/tcm_usb_gadget.c +++ b/drivers/usb/gadget/tcm_usb_gadget.c | |||
@@ -1851,7 +1851,7 @@ static int usbg_port_link(struct se_portal_group *se_tpg, struct se_lun *lun) | |||
1851 | struct usbg_tpg *tpg = container_of(se_tpg, struct usbg_tpg, se_tpg); | 1851 | struct usbg_tpg *tpg = container_of(se_tpg, struct usbg_tpg, se_tpg); |
1852 | 1852 | ||
1853 | atomic_inc(&tpg->tpg_port_count); | 1853 | atomic_inc(&tpg->tpg_port_count); |
1854 | smp_mb__after_atomic_inc(); | 1854 | smp_mb__after_atomic(); |
1855 | return 0; | 1855 | return 0; |
1856 | } | 1856 | } |
1857 | 1857 | ||
@@ -1861,7 +1861,7 @@ static void usbg_port_unlink(struct se_portal_group *se_tpg, | |||
1861 | struct usbg_tpg *tpg = container_of(se_tpg, struct usbg_tpg, se_tpg); | 1861 | struct usbg_tpg *tpg = container_of(se_tpg, struct usbg_tpg, se_tpg); |
1862 | 1862 | ||
1863 | atomic_dec(&tpg->tpg_port_count); | 1863 | atomic_dec(&tpg->tpg_port_count); |
1864 | smp_mb__after_atomic_dec(); | 1864 | smp_mb__after_atomic(); |
1865 | } | 1865 | } |
1866 | 1866 | ||
1867 | static int usbg_check_stop_free(struct se_cmd *se_cmd) | 1867 | static int usbg_check_stop_free(struct se_cmd *se_cmd) |