Revision 712d361d59efa6349a9538f4fd9a49073f0e8127 authored by Eric Sandeen on 28 November 2017, 02:23:33 UTC, committed by Darrick J. Wong on 28 November 2017, 16:57:11 UTC
It's only used for tracepoints so it's relatively harmless,
but the offset is calculated incorrectly in xfs_scrub_quota_item.

qi_dqperchunk is the nr. of dquots per "chunk" which we have
conveniently *cough* defined to always be 1 FSB.  Therefore
block_offset * qi_dqperchunk == first id in that chunk,
and so offset = id / qi_dqperchunk

id * dqperchunk is ... meaningless.

Fixes-coverity-id: 1423965
Fixes: c2fc338c ("xfs: scrub quota information")
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
1 parent eda6bc2
Raw File
Kconfig
# ALSA Sparc drivers

menuconfig SND_SPARC
	bool "Sparc sound devices"
	depends on SPARC
	default y
	help
	  Support for sound devices specific to Sun SPARC architectures.

if SND_SPARC

config SND_SUN_AMD7930
	tristate "Sun AMD7930"
	depends on SBUS
	select SND_PCM
	help
	  Say Y here to include support for AMD7930 sound device on Sun.

	  To compile this driver as a module, choose M here: the module
	  will be called snd-sun-amd7930.

config SND_SUN_CS4231
	tristate "Sun CS4231"
	select SND_PCM
	select SND_TIMER
	help
	  Say Y here to include support for CS4231 sound device on Sun.

	  To compile this driver as a module, choose M here: the module
	  will be called snd-sun-cs4231.

config SND_SUN_DBRI
	tristate "Sun DBRI"
	depends on SBUS
	select SND_PCM
	help
	  Say Y here to include support for DBRI sound device on Sun.

	  To compile this driver as a module, choose M here: the module
	  will be called snd-sun-dbri.

endif	# SND_SPARC
back to top