Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
890b6a7a
Commit
890b6a7a
authored
Sep 04, 2003
by
Alexander Viro
Committed by
Linus Torvalds
Sep 04, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] large dev_t - second series (2/15)
floppy98 ->probe() forgot to set *part to 0; fixed.
parent
b9e8bb61
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
drivers/block/floppy98.c
drivers/block/floppy98.c
+1
-0
fs/partitions/nec98.c
fs/partitions/nec98.c
+1
-2
No files found.
drivers/block/floppy98.c
View file @
890b6a7a
...
@@ -4249,6 +4249,7 @@ static struct kobject *floppy_find(dev_t dev, int *part, void *data)
...
@@ -4249,6 +4249,7 @@ static struct kobject *floppy_find(dev_t dev, int *part, void *data)
return
NULL
;
return
NULL
;
if
(((
*
part
>>
2
)
&
0x1f
)
>=
NUMBER
(
floppy_type
))
if
(((
*
part
>>
2
)
&
0x1f
)
>=
NUMBER
(
floppy_type
))
return
NULL
;
return
NULL
;
*
part
=
0
;
return
get_disk
(
disks
[
drive
]);
return
get_disk
(
disks
[
drive
]);
}
}
...
...
fs/partitions/nec98.c
View file @
890b6a7a
...
@@ -73,10 +73,9 @@ int nec98_partition(struct parsed_partitions *state, struct block_device *bdev)
...
@@ -73,10 +73,9 @@ int nec98_partition(struct parsed_partitions *state, struct block_device *bdev)
const
struct
nec98_partition
*
part
;
const
struct
nec98_partition
*
part
;
unsigned
char
*
data
;
unsigned
char
*
data
;
int
sector_size
=
bdev_hardsect_size
(
bdev
);
int
sector_size
=
bdev_hardsect_size
(
bdev
);
int
major
=
MAJOR
(
bdev
->
bd_dev
);
if
(
ioctl_by_bdev
(
bdev
,
HDIO_GETGEO
,
(
unsigned
long
)
&
geo
)
!=
0
)
{
if
(
ioctl_by_bdev
(
bdev
,
HDIO_GETGEO
,
(
unsigned
long
)
&
geo
)
!=
0
)
{
printk
(
" unsupported disk (
major = %u)
\n
"
,
major
);
printk
(
" unsupported disk (
%s)
\n
"
,
bdev
->
bd_disk
->
disk_name
);
return
0
;
return
0
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment