@@ -2890,22 +2890,22 @@ static int keyspan_port_probe(struct usb_serial_port *port)
2890
2890
for (i = 0 ; i < ARRAY_SIZE (p_priv -> in_buffer ); ++ i ) {
2891
2891
p_priv -> in_buffer [i ] = kzalloc (IN_BUFLEN , GFP_KERNEL );
2892
2892
if (!p_priv -> in_buffer [i ])
2893
- goto err_in_buffer ;
2893
+ goto err_free_in_buffer ;
2894
2894
}
2895
2895
2896
2896
for (i = 0 ; i < ARRAY_SIZE (p_priv -> out_buffer ); ++ i ) {
2897
2897
p_priv -> out_buffer [i ] = kzalloc (OUT_BUFLEN , GFP_KERNEL );
2898
2898
if (!p_priv -> out_buffer [i ])
2899
- goto err_out_buffer ;
2899
+ goto err_free_out_buffer ;
2900
2900
}
2901
2901
2902
2902
p_priv -> inack_buffer = kzalloc (INACK_BUFLEN , GFP_KERNEL );
2903
2903
if (!p_priv -> inack_buffer )
2904
- goto err_inack_buffer ;
2904
+ goto err_free_out_buffer ;
2905
2905
2906
2906
p_priv -> outcont_buffer = kzalloc (OUTCONT_BUFLEN , GFP_KERNEL );
2907
2907
if (!p_priv -> outcont_buffer )
2908
- goto err_outcont_buffer ;
2908
+ goto err_free_inack_buffer ;
2909
2909
2910
2910
p_priv -> device_details = d_details ;
2911
2911
@@ -2951,15 +2951,14 @@ static int keyspan_port_probe(struct usb_serial_port *port)
2951
2951
2952
2952
return 0 ;
2953
2953
2954
- err_outcont_buffer :
2954
+ err_free_inack_buffer :
2955
2955
kfree (p_priv -> inack_buffer );
2956
- err_inack_buffer :
2956
+ err_free_out_buffer :
2957
2957
for (i = 0 ; i < ARRAY_SIZE (p_priv -> out_buffer ); ++ i )
2958
2958
kfree (p_priv -> out_buffer [i ]);
2959
- err_out_buffer :
2959
+ err_free_in_buffer :
2960
2960
for (i = 0 ; i < ARRAY_SIZE (p_priv -> in_buffer ); ++ i )
2961
2961
kfree (p_priv -> in_buffer [i ]);
2962
- err_in_buffer :
2963
2962
kfree (p_priv );
2964
2963
2965
2964
return - ENOMEM ;
0 commit comments