File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -4110,6 +4110,7 @@ static int drm_dp_mst_handle_up_req(struct drm_dp_mst_topology_mgr *mgr)
4110
4110
{
4111
4111
struct drm_dp_pending_up_req * up_req ;
4112
4112
struct drm_dp_mst_branch * mst_primary ;
4113
+ int ret = 0 ;
4113
4114
4114
4115
if (!drm_dp_get_one_sb_msg (mgr , true, NULL ))
4115
4116
goto out_clear_reply ;
@@ -4118,8 +4119,10 @@ static int drm_dp_mst_handle_up_req(struct drm_dp_mst_topology_mgr *mgr)
4118
4119
return 0 ;
4119
4120
4120
4121
up_req = kzalloc (sizeof (* up_req ), GFP_KERNEL );
4121
- if (!up_req )
4122
- return - ENOMEM ;
4122
+ if (!up_req ) {
4123
+ ret = - ENOMEM ;
4124
+ goto out_clear_reply ;
4125
+ }
4123
4126
4124
4127
INIT_LIST_HEAD (& up_req -> next );
4125
4128
@@ -4186,7 +4189,7 @@ static int drm_dp_mst_handle_up_req(struct drm_dp_mst_topology_mgr *mgr)
4186
4189
drm_dp_mst_topology_put_mstb (mst_primary );
4187
4190
out_clear_reply :
4188
4191
memset (& mgr -> up_req_recv , 0 , sizeof (struct drm_dp_sideband_msg_rx ));
4189
- return 0 ;
4192
+ return ret ;
4190
4193
}
4191
4194
4192
4195
static void update_msg_rx_state (struct drm_dp_mst_topology_mgr * mgr )
You can’t perform that action at this time.
0 commit comments