File tree 1 file changed +9
-2
lines changed 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -2198,12 +2198,19 @@ static int st_set_options(struct scsi_tape *STp, long options)
2198
2198
struct st_modedef * STm ;
2199
2199
char * name = tape_name (STp );
2200
2200
struct cdev * cd0 , * cd1 ;
2201
+ struct device * d0 , * d1 ;
2201
2202
2202
2203
STm = & (STp -> modes [STp -> current_mode ]);
2203
2204
if (!STm -> defined ) {
2204
- cd0 = STm -> cdevs [0 ]; cd1 = STm -> cdevs [1 ];
2205
+ cd0 = STm -> cdevs [0 ];
2206
+ cd1 = STm -> cdevs [1 ];
2207
+ d0 = STm -> devs [0 ];
2208
+ d1 = STm -> devs [1 ];
2205
2209
memcpy (STm , & (STp -> modes [0 ]), sizeof (struct st_modedef ));
2206
- STm -> cdevs [0 ] = cd0 ; STm -> cdevs [1 ] = cd1 ;
2210
+ STm -> cdevs [0 ] = cd0 ;
2211
+ STm -> cdevs [1 ] = cd1 ;
2212
+ STm -> devs [0 ] = d0 ;
2213
+ STm -> devs [1 ] = d1 ;
2207
2214
modes_defined = 1 ;
2208
2215
DEBC (printk (ST_DEB_MSG
2209
2216
"%s: Initialized mode %d definition from mode 0\n" ,
You can’t perform that action at this time.
0 commit comments