File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -305,8 +305,6 @@ int ibm_partition(struct parsed_partitions *state)
305
305
if (!disk -> fops -> getgeo )
306
306
goto out_exit ;
307
307
fn = symbol_get (dasd_biodasdinfo );
308
- if (!fn )
309
- goto out_exit ;
310
308
blocksize = bdev_logical_block_size (bdev );
311
309
if (blocksize <= 0 )
312
310
goto out_symbol ;
@@ -326,7 +324,7 @@ int ibm_partition(struct parsed_partitions *state)
326
324
geo -> start = get_start_sect (bdev );
327
325
if (disk -> fops -> getgeo (bdev , geo ))
328
326
goto out_freeall ;
329
- if (fn (disk , info )) {
327
+ if (! fn || fn (disk , info )) {
330
328
kfree (info );
331
329
info = NULL ;
332
330
}
@@ -370,7 +368,8 @@ int ibm_partition(struct parsed_partitions *state)
370
368
out_nogeo :
371
369
kfree (info );
372
370
out_symbol :
373
- symbol_put (dasd_biodasdinfo );
371
+ if (fn )
372
+ symbol_put (dasd_biodasdinfo );
374
373
out_exit :
375
374
return res ;
376
375
}
You can’t perform that action at this time.
0 commit comments